I am trying to convert a Set to an Array.
Set s = new HashSet(Arrays.asList(\"mango\",\"guava\",\"apple\")); String[] a = s.toArr
The parameter is a result of one of the many well-known limitations in the Java generics system. Basically, the parameter is needed in order to be able to return an array of the correct type.