I want to change the array to Set in Java. java.util.Arrays.asList(Object[] a);
I can use asList, but I want to find a cleaner way.
Set<T> mySet = new HashSet<T>(Arrays.asList(someArray));
How about this?
© 2024 OneMinuteCode. All rights reserved.