The Arrays toString method is mostly for debugging.
You'll have to write your own code using some loops to have multiple rows of output
Type: Posts; User: Norm
The Arrays toString method is mostly for debugging.
You'll have to write your own code using some loops to have multiple rows of output
Printing the endline char: "\n" will move the output to the next line.
Print out the board after filling it with -
Try debugging the fillWithRandomXandO method by adding some println statements to print the values of the variables it uses so you can see what the code...
Why are there spaces in the print out?
Print out the board before you change it
Can you post the code and show its output or the errors?
If you want to print a 2D array with the Arrays class, it has a method to do that. Its name begins with deep
What is your problem now? Can you generate a board?
What determines what the "proper number" is?
Does the code now generate a "random" board?
What output do you get now?