Computer Applications

Describe the purpose and write the syntax of startWith() function.

Java String Handling

13 Likes

Answer

It tests if the string object starts with the string specified as its argument.

Syntax:


boolean <variable-name> = <string-variable>.startWith(<string>);

Answered By

7 Likes


Related Questions