public static void train ( ) {
  String in = "ejpmysljylckdkxveddknmcrejsicpdrysirbcpcypcrtcsradkhwyfrepkymveddknkmkrkcddekrkdeoyakwaejtysrreujdrlkgcjvyeq" , out = "ourlanguageisimpossibletounderstandtherearetwentysixfactorialpossibilitiessoitisokayifyouwanttojustgiveupaoz" ;
  fill ( Cipher , ( char ) 0 ) ;
  for ( int i = 0 ;
  i < in . length ( ) ;
  ++ i ) Cipher [ in . charAt ( i ) ] = out . charAt ( i ) ;
  for ( char i = 'a' ;
  i <= 'z' ;
  ++ i ) {
    if ( Cipher [ i ] == 0 ) {
      char j , k ;
      for ( j = 'a' ;
      j <= 'z' ;
      ++ j ) {
        for ( k = 'a' ;
        k <= 'z' ;
        ++ k ) if ( Cipher [ k ] == j ) break ;
        if ( k > 'z' ) break ;
      }
      Cipher [ i ] = j ;
    }
  }
  for ( int i = 'a' ;
  i <= 'z' ;
  ++ i ) if ( Cipher [ i ] != 0 ) Cipher [ i - 'a' + 'A' ] = ( char ) ( i + ( 'A' - 'a' ) ) ;
}

public static void train ( ) { String in = " ejpmysljylckdkxveddknmcrejsicpdrysirbcpcypcrtcsradkhwyfrepkymveddknkmkrkcddekrkdeoyakwaejtysrreujdrlkgcjvyeq " , out = " ourlanguageisimpossibletounderstandtherearetwentysixfactorialpossibilitiessoitisokayifyouwanttojustgiveupaoz " ; fill ( Cipher , ( char ) 0 ) ; for ( int i = 0 ; i < in . length ( ) ; ++ i ) Cipher [ in . charAt ( i ) ] = out . charAt ( i ) ; for ( char i = ' a ' ; i <= ' z ' ; ++ i ) { if ( Cipher [ i ] == 0 ) { char j , k ; for ( j = ' a ' ; j <= ' z ' ; ++ j ) { for ( k = ' a ' ; k <= ' z ' ; ++ k ) if ( Cipher [ k ] == j ) break ; if ( k > ' z ' ) break ; } Cipher [ i ] = j ; } } for ( int i = ' a ' ; i <= ' z ' ; ++ i ) if ( Cipher [ i ] != 0 ) Cipher [ i - ' a ' + ' A ' ] = ( char ) ( i + ( ' A ' - ' a ' ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (string_literal)) declarator: (variable_declarator name: (identifier) value: (string_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (cast_expression type: (integral_type) value: (decimal_integer_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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (character_literal))) condition: (binary_expression left: (identifier) right: (character_literal)) 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: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (for_statement init: (assignment_expression left: (identifier) right: (character_literal)) condition: (binary_expression left: (identifier) right: (character_literal)) update: (update_expression (identifier)) body: (block (for_statement init: (assignment_expression left: (identifier) right: (character_literal)) condition: (binary_expression left: (identifier) right: (character_literal)) update: (update_expression (identifier)) body: (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) consequence: (break_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (break_statement)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (character_literal))) condition: (binary_expression left: (identifier) right: (character_literal)) update: (update_expression (identifier)) body: (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (character_literal)) right: (character_literal))) right: (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (character_literal) right: (character_literal))))))))))))