public static boolean isSubstring ( String a , String b ) {
  int a_size = a . length ( ) ;
  int b_size = b . length ( ) ;
  for ( int i = 0 ;
  i < b_size ;
  i ++ ) {
    boolean found = true ;
    if ( i + a_size > b_size ) {
      break ;
    }
    for ( int j = 0 ;
    j < a_size ;
    j ++ ) {
      if ( b . charAt ( i + j ) != a . charAt ( j ) ) {
        found = false ;
        break ;
      }
    }
    if ( found ) {
      return true ;
    }
  }
  return false ;
}

public static boolean isSubstring ( String a , String b ) { int a_size = a . length ( ) ; int b_size = b . length ( ) ; for ( int i = 0 ; i < b_size ; i ++ ) { boolean found = true ; if ( i + a_size > b_size ) { break ; } for ( int j = 0 ; j < a_size ; j ++ ) { if ( b . charAt ( i + j ) != a . charAt ( j ) ) { found = false ; break ; } } if ( found ) { return true ; } } return false ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (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) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (break_statement))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (false))) (break_statement))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (block (return_statement (true)))))) (return_statement (false))))