import java.util.Set;
import java.util.HashSet;
public class SetContains {
public static void main(String[] args) {
// creating our set
// set internally uses hashmap
Set<String> set = new HashSet<>();
// adding element to our set
set.add("Gunjan");
set.add("Rehana");
set.add("Kiara");
set.add("Kayra");
set.add("Varsha");
set.add("Sayra");
set.add("Rehana");
Set<String> set1 = new HashSet<>();
set1.add("Rehana");
set1.add("Kayra");
set1.add("Gunjan");
Set<String> set2 = new HashSet<>();
set2.add("Rehana");
set2.add("Kayra");
set2.add("Gunjan");
set2.add("Ravisha");
System.out.println(set.contains("Kiara"));
System.out.println(set1.contains("Varsha"));
System.out.println(set.containsAll(set1));
System.out.println(set1.containsAll(set2));
}
}