Posts by Thiago256 • 21 points
1 post
-
2
votes4
answers422
viewsA: What is the best way to convert an int array to String in Java?
If you are using Java 8, you can use stream: String str = Arrays.stream(intArray).mapToObj(String::valueOf) .reduce((a, b) -> a.concat(b)).get(); If you need a char to concatenate you can use the…