the string object has one property with actualstring.length recording length in characters of string |
Note we only have one type of string object -- Java has String (fixed) and StringBuffer (mutable) and they start with a capital S! |
characters are indexed from the left starting at 0 and ending with actualstring.length-1 |
newstring = actualstring.substring(index1,index2); // returns a string consisting of characters in locations index1 ... index2-1 |
Peculiarly if index2 < index1, substring returns locations index2 ... index1-1 |