boolean startsWith (String s1, String prefix)
boolean startsWith (String s1, String prefix)
s1
starts with the specified prefix.Name | Type | Description |
---|---|---|
s1 | String | A String to test for the presence of the prefix. |
prefix | String | A prefix String to test for in the String s1 . |
Type | Description |
---|---|
boolean | true if s1 starts with prefix , false otherwise. |