Question: The language is Java. Using loops, make a method that prints out a tic-tac-toe board (a 3x3 grid) to the console. It should look like
The language is Java.
Using loops, make a method that prints out a tic-tac-toe board (a 3x3 grid) to the console. It should look like this (more or less): Then, using loops again, create a connect-4 board (a 6x7 grid), like this: - --- As an added challenge, try to make a function that takes 2 variables (a height, and a width) and prints a grid of the appropriate size to the console. Remember to use the "preformatted" option when typing code to help with spacing and readability.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
