Doug Lea writes:
A student was confused by the Javadoc for String.startsWith.
For good reason. It says
Tests if this string starts with the specified prefix beginning a
specified index.
Besides the typo, this leaves ambiguous whether the index refers
to this string or to the prefix.
###@###.### 2005-04-22 18:55:58 GMT
A student was confused by the Javadoc for String.startsWith.
For good reason. It says
Tests if this string starts with the specified prefix beginning a
specified index.
Besides the typo, this leaves ambiguous whether the index refers
to this string or to the prefix.
###@###.### 2005-04-22 18:55:58 GMT
- duplicates
-
JDK-5029438 Typo in String.startsWith(String prefix, int toffset) documentation
-
- Closed
-