Check out example codes for "java create a set with values". It will help you in understanding the concepts better.

Code Example 1

Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));

Learn ReactJs, React Native from akashmittal.com