Good luck on the next set of problems.
Type: Posts; User: Norm
Good luck on the next set of problems.
Add a call to System.out.println();
after all the characters are printed that go on one row.
Hint: the inner for loop that uses the col variable is what prints the contents of a row.
If the output from the code in post#1 has all the characters in the correct order, then the only thing needed is to output a newline at the end of each row after printing the Xs and Os in the columns...
Did the code in post#1 ever put two of the same letters next to each other?
The code in post#9 does.
What was wrong about the code in post#1? Can that be changed to get what you want?
Can you also post the code that generates the output shown in post#7?
Execute the program, copy the program's output and paste it here on the forum so it can be compared against the desired output.
Yes, calling System.exit() will exit the program.
See the tutorial:
The while and do-while Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)
Use a call to the println() method first thing.
Post the program's current output to compare against.
I assume you are talking about looping back in the code to where it prints out a...