1 javaCopyimport java.util.*;
2import java.lang.*;
3import java.io.*;
4
5public class Example1 {
6 public static void main(String[] args) {
7 String str = "Character";
8 System.out.println(str.contains("h"));
9 System.out.println(str.contains("Char"));
10 System.out.println(str.contains("ac"));
11 System.out.println(str.contains("v"));
12 System.out.println(str.contains("vl"));
13 }
14}
15