Java find the size of an array
Filed Under (java) by admin on 15-11-2011
Use Java Array Length.
Example:
String months[] = {"Jan", "Feb", "Mar", "Apr", "May",
"Jun", "July", "Aug", "Sep", "Oct", "Nov", "Dec"};
System.out.println(months.length);
Value of months.length is equal to 12


