Jack B. Jack B. - 1 year ago 115
Java Question

Converting from HashSet<String> to String[]

What's the best way to convert

HashSet<String>
to
String[]
?

Answer Source
set.toArray(new String[set.size()]);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download