Mat Banik Mat Banik - 1 year ago 57
Java Question

Convert Set<Integer> to Set<String> in Java

Is there a simple way to convert

Set<Integer>
to
Set<String>
without iterating through the entire set?

Answer Source

No. You have to format each integer and add it to your string set.