How would I edit this to have a space between every two characters?
To begin with, I have an empty String then to that String characters of the UNICODE get added until the count has reached the number that I put in the parameter of the main method. After every 10 characters I want a line break and after the last character too. Now I have the code that fulfills this method but I want to add a space after every two characters, how do I do that? Code: public class Main { public static void main (String[] args) { //a String a = MoreMethods.createCharSeries('A', 30); System.out.println(a); } } public class MoreMethods { public static String createCharSeries (char startChar, int count) { String s = ""; for(int i = 1; i <= count; i++) { s = s + startChar++; //i = 10 if(i % 10 == 0) { s = s + "\n"; } } s = s + "\n"; return s; }