1. Overview
In this article, You'll learn how to Test if this string starts with the specified prefix.
Method startsWith() is case-sensitive.
String API is added with a method startsWith() that returns true if the character sequence represented by the argument is a prefix of the character sequence represented by this string; false otherwise. Note also that true will be returned if the argument is an empty string or is equal to this String object as determined by the equals(Object) method.
This method works exactly opposite to the String endsWith() method.