I need to insert a space after every character of a string.
i.e. String name = "Joe";
String name = "Joe";
should become: "J o e"
"J o e"
Shorter would be using a regex:
System.out.println("Joe".replaceAll(".(?!$)", "$0 "));
1.4m articles
1.4m replys
5 comments
57.0k users