public static void main ( String args [ ] ) {
  int n = 5 ;
  int a [ ] [ ] = {
    {
      1 , 2 , 3 , 4 , 5 }, {
        5 , 6 , 7 , 8 , 6 }, {
          9 , 5 , 6 , 8 , 7 }, {
            2 , 3 , 5 , 6 , 8 }, {
              1 , 2 , 3 , 4 , 5 }
            };
            int convergingele , mid ;
            int i , j ;
            if ( n % 2 == 0 ) {
              System . out . printf ( "NULL\n" ) ;
            }
            else {
              mid = n / 2 ;
              convergingele = a [ mid ] [ mid ] ;
              System . out . printf ( "%d\n" , convergingele ) ;
            }
          }
          
public static void main ( String args [ ] ) { int n = 5 ; int a [ ] [ ] = { { 1 , 2 , 3 , 4 , 5 } , { 5 , 6 , 7 , 8 , 6 } , { 9 , 5 , 6 , 8 , 7 } , { 2 , 3 , 5 , 6 , 8 } , { 1 , 2 , 3 , 4 , 5 } } ; int convergingele , mid ; int i , j ; if ( n % 2 == 0 ) { System . out . printf ( " NULL \n " ) ; } else { mid = n / 2 ; convergingele = a [ mid ] [ mid ] ; System . out . printf ( " % d \n " , convergingele ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_initializer (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)) (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)) (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)) (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)) (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier))))))))