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
The answer to this question is firewall
Based on the scenario above about the leading-trailing system Both technician A and B are incorrect.
<h3>How many brake shoes function?</h3>
There are known to be two shoes function that are said to be working a way where both become either the trailing shoe or leading shoe based on whether the vehicle is moving forward or backward.
Therefore we can say that, Based on the scenario above about the leading-trailing system Both technician A and B are incorrect.
Learn more about trailing system from
brainly.com/question/14367881
#SPJ1
Answer:
The qualities of different products that caught your eye and encourage you to buy them is described below in detail.
Explanation:
A fantastic method to do this would be to practice shiny colors in any advertisement you publish. This is an old method, but it's a great one. Glowing orange, for example, is sure to hold watching much higher than bland shades like gray. Play throughout here, and apply the color you think illustrates the eye most.