static void alloc ( ) {
  int m = meme . length ;
  int n = scan . nextInt ( ) ;
  int i ;
  int ctr = 0 ;
  boolean exist = false ;
  for ( i = 0 ;
  i < m ;
  ++ i ) {
    if ( meme [ i ] == 0 ) ++ ctr ;
    else ctr = 0 ;
    if ( ctr == n ) {
      exist = true ;
      break ;
    }
  }
  if ( ! exist ) System . out . println ( "NULL" ) ;
  else {
    ++ block ;
    ctr = i - n + 1 ;
    for ( i = 0 ;
    i < n ;
    ++ i ) meme [ ctr + i ] = block ;
    System . out . println ( block ) ;
  }
}

static void alloc ( ) { int m = meme . length ; int n = scan . nextInt ( ) ; int i ; int ctr = 0 ; boolean exist = false ; for ( i = 0 ; i < m ; ++ i ) { if ( meme [ i ] == 0 ) ++ ctr ; else ctr = 0 ; if ( ctr == n ) { exist = true ; break ; } } if ( ! exist ) System . out . println ( " NULL " ) ; else { ++ block ; ctr = i - n + 1 ; for ( i = 0 ; i < n ; ++ i ) meme [ ctr + i ] = block ; System . out . println ( block ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (false))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (expression_statement (update_expression (identifier))) alternative: (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (true))) (break_statement))))) (if_statement condition: (parenthesized_expression (unary_expression operand: (identifier))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (block (expression_statement (update_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (identifier))) right: (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))))