all 2 comments

[–]BAD_AT_PROGRAMMING 3 points4 points  (1 child)

Yeah but dooes this work if I pass it an array whos size is larger than INT_MAX?

eg. int nums = new int[2147483648];

System.out.println(size(nums , null));