Print all elements of a set:
IamAset.forEach(setElement -> System.out.println(setElement));
Put elements of an Array in a Set:
String[] iAmAnArray = IamAsequenceOfThings.split(" ");
IamAset.addAll(List.of(iAmAnArray ));
Print all elements of a set:
IamAset.forEach(setElement -> System.out.println(setElement));
Put elements of an Array in a Set:
String[] iAmAnArray = IamAsequenceOfThings.split(" ");
IamAset.addAll(List.of(iAmAnArray ));