String Handling – startsWith( )

startsWith( ) Syntax boolean startsWith(String str);   startsWith ( ) is  standard method of String, it is used to compare the given string with the starting characters of invoking object, if the given string is matched with the starting characters…