Mat Banik Mat Banik - 1 month ago 6
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

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

Comments