Sorry, but I don't think that makes it clear. Where does it say that a String is an array of chars? A String is a string of chars, but where does it define the implementation of String to be that of...
Type: Posts; User: KevinWorkman
Sorry, but I don't think that makes it clear. Where does it say that a String is an array of chars? A String is a string of chars, but where does it define the implementation of String to be that of...
It's not that everything is one less, and it's not just with arrays. For example, Strings of length 5 contain 5 characters, but the last character is at position 4.
Or think about this: we're in...
Hint: If an array's length is 6, what is its last index?