static boolean isShuffledSubString ( String A , String B ) {
  int n = A . length ( ) ;
  int m = B . length ( ) ;
  if ( n > m ) {
    return false ;
  }
  else {
    A = sort ( A ) ;
    for ( int i = 0 ;
    i < m ;
    i ++ ) {
      if ( i + n - 1 >= m ) return false ;
      String str = "" ;
      for ( int j = 0 ;
      j < n ;
      j ++ ) str += B . charAt ( i + j ) ;
      str = sort ( str ) ;
      if ( str . equals ( A ) ) return true ;
    }
  }
  return false ;
}

static boolean isShuffledSubString ( String A , String B ) { int n = A . length ( ) ; int m = B . length ( ) ; if ( n > m ) { return false ; } else { A = sort ( A ) ; for ( int i = 0 ; i < m ; i ++ ) { if ( i + n - 1 >= m ) return false ; String str = " " ; for ( int j = 0 ; j < n ; j ++ ) str += B . charAt ( i + j ) ; str = sort ( str ) ; if ( str . equals ( A ) ) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (return_statement (false))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (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: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)) right: (identifier))) consequence: (return_statement (false))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (string_literal))) (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: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (return_statement (true))))))) (return_statement (false))))