int[][] array = new int[5][5];
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < array.length; j++) {
System.out.print(1);
}
System.out.println();
}
Hi guys, i have this array which prints a 5x5 1's
11111
11111
11111
11111
11111
What i would like to do is to make three (3) of those 1's as 0 randomly. Example
11101
11111
11011
10111
11111
How do I do that? Thank you in advance!