Java tips and tricks

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 ));

error: Content is protected !!