Java startsWith() method
Java startsWith() method The Java startsWith() method checks if the string starts with the given prefix. It returns true if this string starts with the given prefix else the method returns false. Method signature public boolean startsWith(String prefix) prefix: The sequence of characters to check at the beginning of the string. The prefix parameter is […]