What does the following error mean? And why does it occur?
String index out of range: 4.
Thanks in advance
public class StringIndexOutOfBoundsException
Thrown by the charAt method in class String and by other String methods to indicate that an index is either negative or greater than or equal to the size of the string.
The above code will generate the StringIndexOutOfBounds exception because there isn't 100 characters in string test.