Question: please use java thanks Q4. Write a program that randomly fills in Os and 1s into a TicTacToe board, prints the board, and find the
please use java thanks 
Q4. Write a program that randomly fills in Os and 1s into a TicTacToe board, prints the board, and find the rows, columns, or diagonals with all Os or 1s. Use a two- dimensional array to represent a TicTacToe board. [Hint: Use Math. random () *2 to randomly generate the Os and 1s.] Here are some of the sample run of the program TicTacToe board: 010 110 Result (s) All 1's on row 1 All 1's on col umn 1 TicTacToe board: 011 001 Result (s): All 0's on row 1 All O's on column 0 TicTacToe board: 010 101 001 Result (s): All 0's on subdiagonal TicTacToe board 010 Result (s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
