Java-Startswith and Endswith
Startswith and Endswith The String class provides two more methods that are specialized versions of the equals( ) method. The startWith( ) method enables us to check whether a given string str1 starts with another string str2. For example, in the following program, the startWith( ) method will return true as the string “hajsoftutorial” starts … Read more…