java string

Java String function equalsIgnoreCase()

The String equalsIgnoreCase() method compares the two given strings on the basis of content of the string irrespective of case of the string. It is like equals() method but doesn’t check case. If any character is not matched, it returns false otherwise it returns true. Java String equalsIgnoreCase() method example public class EqualsIgnoreCaseExample{ public static […]

Java String Function equals()

The java string equals() method compares the two given strings based on the content of the string. If any character is not matched, it returns false. If all characters are matched, it returns true. The String equals() method overrides the equals() method of Object class. Java String equals() method example public class EqualsExample{ public static […]

1 2