Scanner sc = new Scanner(System.in); String str = sc.next();
Set<String> myStringSet = new HashSet<>(Arrays.asList("a", "b"));