Tests if this string starts with the specified prefix.
prefix | the prefix. |
true if the character sequence represented by the
argument is a prefix of the character sequence represented by
this string; false otherwise.
Note also that true will be returned if the
argument is an empty string or is equal to this
String object as determined by the
equals(Object) method.
Diagram: String