Java arrays and strings
October 13 2008, 4:25 PM
The length of an array is an attribute.
String [] testArray = {"this", "that"};The length of a string is a method.
System.out.println(testArray.length);
String test="Hello there";
System.out.println(test.length());