Endswith String

in Hindi - Endswith String



not yet

Source Code :

RUNpublic class EndsWith{  

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

System.out.println(str1.endsWith(str2));

System.out.println(str1.endsWith(str2));
}
}