Preview:
public static void main(String[] args) {
		

//Reverse numbers in the column.
  
  int [][] array = { 
				{1,2}, 
				{3,4}, 
				{5,6}, };
		
		for(int i= 0; i<array.length; i++) {
			for(int j=array[i].length-1; j>=0; j--) {
				System.out.print(array[i][j] + " ");
			}
			System.out.println();
		}
	}

//OUTPUT:
2 1 
4 3 
6 5 

//Reverse numbers in Row
public static void main(String[] args) {
		
		int [][] array = { 
				{1,2}, 
				{3,4}, 
				{5,6}, };
		
		for(int i=array.length-1; i>=0; i--) {
			for(int j=0; j<array.length-1; j++) {
				System.out.print(array[i][j] + " ");
			}
			System.out.println();
		}
	}

//OUTPUT:
5 6 
3 4 
1 2 

//Reverse numbers both Column and Row.
public static void main(String[] args) {
		
		int [][] array = { 
				{1,2}, 
				{3,4}, 
				{5,6}, };
		
		for(int i=array.length-1; i>=0; i--) {
			for(int j=array[i].length-1; j>=0; j--) {
				System.out.print(array[i][j] + " ");
			}
			System.out.println();
		}
	}
//OOUTPUT:
6 5 
4 3 
2 1 
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter