Answer:
public class Main
{
public static void main(String[] args) {
int [][] a = new int[4][5];
a[0][0] = 1;
a[0][1] = 2;
a[0][2] = 3;
a[0][3] = 4;
a[0][4] = 5;
a[1][0] = 10;
a[1][1] = 9;
a[1][2] = 8;
a[1][3] = 7;
a[1][4] = 6;
a[2][0] = 11;
a[2][1] = 12;
a[2][2] = 13;
a[2][3] = 14;
a[2][4] = 15;
a[3][0] = 20;
a[3][1] = 19;
a[3][2] = 18;
a[3][3] = 17;
a[3][4] = 16;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 5; j++){
System.out.print(a[i][j] + " ");
}
System.out.print("\n");
}
}
}
Explanation:
- Inside the main method, initialize the 2D array with their respective values at the appropriate indexes.
- Iterate over the 2D array using a nested For loop.
- The outer loop iterates over the rows, while the inner loop iterates over the columns of the 2D array respectively.
- Finally inside the nested For loop, print the value of 2D array using the i and j index.
Output:
1 2 3 4 5
10 9 8 7 6
11 12 13 14 15
20 19 18 17 16
Answer:
nah
Explanation:
is a lame game for lil kids
Bitlocker Encryption can be used during the process of authenticating your computer with a TPM, during the process of authenticating your account with a USB flash drive, and most of the authentication through text messages.