I have to do bugfixes in a very old code (pre 2005) in which the below signature of String::substring is used.
public String substring(int beginIndex, int endIndex)
Now it contains every character from beginIndex till endIndex-1. Is it possible that in the past it also contained the character on endIndex?
In the code it looks like the following:
String str = line.substring(119, 120);
and it is compared to a 2 letter string. Does anyone have any information about this?