import java.util.Scanner;
public class TwoAtATime {
public static void main(String[] args) {
Scanner scan= new Scanner(System.in);
System.out.println("Enter a word with an even amount of letters:");
String w = scan.nextLine();
if(w.length() % 2 == 0) {
for(int i= 0; i<w.length(); i++) {
System.out.println(w.charAt(i));
}
} else {
System.out.println("You didnt follow directions");
}
}
}
This is my code so far and I can't figure out how to make it print two per line instead of one, any help?