Quantcast
Channel: User Federico klez Culloca - Stack Overflow
Viewing all articles
Browse latest Browse all 493

Comment by Federico klez Culloca on Why arraylist java does not expose maximum capacity

$
0
0
Why would you need it explicitly? ArrayList is a list backed by an array. You know how big an array can be. It's defined in the java spec (even just by the fact that you must index them with an int), and that is (approximately, since there's that -8) your answer. Why else do you need to programmatically know it?

Viewing all articles
Browse latest Browse all 493

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>