strings
String a="DIWALI", b="CHILDRENS DAY";
System.out.println(b.equalsignoreCase(b.toLowerCase());
Answers
Answered by
2
Answer:
public class Example {
public static void main(String[] args)
{
String columnist1 = "Stephen Edwin King";
String columnist2 = "John Gilbert";
String columnist3 = "stephenedwin king";
// Test any of the above Strings equal to one another
boolean equals1 = columnist1.equalsIgnoreCase(columnist2);
boolean equals2 = columnist1.equalsIgnoreCase(columnist3);
System.out.println();
// Display the results of the equality checks.
System.out.println("\"" + columnist1 + "\" equals \"" +
columnist2 + "\"? " + equals1);
System.out.println("\"" + columnist1 + "\" equals \"" +
columnist3 + "\"? " + equals2);
System.out.println();
}
}
Similar questions