java one line set code example
Example 1: java create a set with values
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));
Example 2: populate set in builder
Set<String> h = new HashSet<>(Arrays.asList("a", "b"));
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));
Set<String> h = new HashSet<>(Arrays.asList("a", "b"));