import java.util.* ; class array6 { static char [][] this_one = { { '1','2','3','4','5' } , { 'a','a','a','a','a' } , { 'b','b','b','b','b' } , { 'c','c','c','c','c' } , { 'd','d','d','d','d' } , { 'e','e','e','e','e' } } ; public static char [][] MAX( char [][] array) { array[0][0] = 'z' ; array[0][1] = 'z' ; array[0][2] = 'z' ; return array ; } public static void main( String[] args ) { char [][] this_two ; System.out.printf("dim 1 = %d\n", this_one[0].length ) ; System.out.printf("dim 1 = %d\n", this_one.length ) ; System.out.println() ; for ( int i = 0 ; i < this_one.length ; i++ ) { for ( int j = 0 ; j < this_one[0].length ; j++ ) System.out.print( this_one[i][j] ) ; System.out.println() ; } System.out.println() ; this_two = MAX( this_one ) ; for ( int i = 0 ; i < this_one.length ; i++ ) { for ( int j = 0 ; j < this_one[0].length ; j++ ) System.out.print( this_one[i][j] ) ; System.out.println() ; } System.out.println() ; for ( int i = 0 ; i < this_one.length ; i++ ) { for ( int j = 0 ; j < this_one[0].length ; j++ ) System.out.print( this_one[i][j] ) ; System.out.println() ; } } }