int function ( ) { int loc0 = 0 ; for ( int [ ] loc1 : matrix ) { for ( int loc2 : loc1 ) { loc0 = loc0 + loc2 ; } } return loc0 ; }
method to return the total using a nested for-each loop concode_field_sep int[][] matrix concode_field_sep void print concode_elem_sep void setMatrix concode_elem_sep int getTotal concode_elem_sep void fillPattern1 concode_elem_sep void fillCount