Strings are an array of characters, but not in Java.
public boolean contains(“searchString”) String x = “Java is programming language”; System.out.println(x.contains(“Amit”)); // This will print false System.out.println(x.contains(“Java”)); // This will print true