Why does Java produce a full array in 3/2 instead of 2?
"The choice of a depends on the library or application: some tutorials use a = 2, but the Java implementation of ArrayList uses a = 3/2 and the C implementation of the Python list data structure uses a = 9/8."
wikipedia source
, . ( ) ( ). , , . , 3/2 Java, , - , .
, : # . " " , .
, 1.5 , " ".
Source: https://habr.com/ru/post/1525769/More articles:Draw part of image inside html5 canvas - javascriptHow to determine the similarity (in%) between two "black and white" images? - androidHow to write Eclipse QuickFix for multiple problems in Java-Source files - javaWhy can't the datareader be initialized? - c #How to set message id in Activemq jms queue? - javaggplot projection map Dymaxion / Airocean (icosahedron) - rgit: key does not contain a section - gitDelete aligned memory from another thread - c ++JPA - remove a child from a OneToMany relationship - javaTextView with lines too long - androidAll Articles