Jack B. Jack B. - 12 days ago 7
Java Question

Converting from HashSet<String> to String[]

What's the best way to convert

HashSet<String>
to
String[]
?

Answer
set.toArray(new String[set.size()]);
Comments