Java String Comparison
String class in Java provides different methods for comparing strings or substrings within strings. In this tutorial I will discuss about those Java string comparison methods. equals() and equalsIgnoreCase() We can use equals() method to check equality of two strings. It has following syntax. Syntax boolean equals(String str) Here str is the String …
