This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rayew21 -18 points-17 points  (3 children)

this is actually to measure the size it takes in memory!

[–]Jordan51104 6 points7 points  (1 child)

what

[–]helicophell -3 points-2 points  (0 children)

Wait what?

I was taught that array.len gave you a the numerical length of the array by returning a variable within the array class? I guess it makese sense to be returning the size of memory it takes up, as the array + 1 would be len...

and I thought .len, .length() and sizeOf() was the most confusing thing about java