Comparetoignorecase String

in Hindi - Comparetoignorecase String



not yet

Source Code :

RUNpublic class CompareToIgnoreCase{  

public static void main(String args[]) {
      
String str1 = "Hello World";
String str2 = "Welcome";
String str3 = "Welcome";

System.out.println(str1.compareToIgnoreCase(str2));
System.out.println(str2.compareToIgnoreCase(str1));
System.out.println(str2.compareToIgnoreCase(str3));     
}
}