1public boolean equalsIgnoreCase(String s)
2------------------------------------------
3String x = "Exit";
4System.out.println( x.equalsIgnoreCase("EXIT")); // is "true"
5System.out.println( x.equalsIgnoreCase("tixe")); // is "false"
6
1static String valueOf(int i) - returns the string representation of the int
2argument.
1public boolean contains(“searchString”)
2
3String x = “Java is programming language”;
4System.out.println(x.contains(“Amit”)); // This will print false
5System.out.println(x.contains(“Java”)); // This will print true
6