List of utility methods to do Set to Array
int[] | setToArray(Set Sorted in ascending order. List<Integer> l = new ArrayList<Integer>(set); Collections.sort(l); int[] intArray = new int[l.size()]; for (int i = 0; i < intArray.length; ++i) { intArray[i] = l.get(i); return intArray; |
String[] | setToArray(Set set To Array String[] array = set.toArray(new String[set.size()]); return array; |