(Display random 0 or 1) Write a program that displays a 10-by-10 square matrix, as shown in Figure 1a. Each element in the matrix is 0 or 1, randomly generated. Display each number centered in a text field. Use TextField’s setText method to set value 0 or 1 as a string.

FIGURE 1 (a) The program randomly generates 0s and 1s. (b) Exercise 14.9 draws four fans. (c) Exercise 14.10 draws a cylinder.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.