Convert an Array to a Set in Java | CodeTrail