Java-IgnoreCase

IgnoreCase A minor variant of the equals( ) method, namely the equalsIgnoreCase( ) method is also available. This method ignores the case of each character in the strings during the comparison. For example, in the following program, the case of each character is ignored by the equalsIgnoreCase( ) method, this method will return the value … Read more…

Java-String Comparison

String Comparison We use the == operator for comparing the values of two variables or expressions of any data type, such as int, float, double, char and boolean. But we have to use the equals( ) method of the String class for comparing two strings. This method is used to find the contents are same, … Read more…