comefrom: <awangdev>Word Ladder_1.java
code: private List<String> transform(Set<String> words, String word) {
  
          List<String> candidates = new ArrayList<>();
          StringBuffer sb = new StringBuffer(word);
          for (int i = 0; i < sb.length(); i++) {
              char temp = sb.charAt(i);
              for (char c = 'a'; c <= 'z'; c++) {
                  if (temp == c) {
                      continue;
                  }
                  sb.setCharAt(i, c);
                  String newWord = sb.toString();
                  if (words.remove(newWord)) {
                      candidates.add(newWord);
                  }
              }
              sb.setCharAt(i, temp);
          }    
          return candidates;
      }
masked: private List < String > var_1 ( Set < String > var_3 , String var_4 ) {
    List < String > var_7 = new ArrayList < > ( ) ;
    StringBuffer var_9 = new StringBuffer ( var_4 ) ;
    for ( int var_11 = 0 ;
    var_11 < var_9 . length ( ) ;
    var_11 ++ ) {
      char var_14 = var_9 . charAt ( var_11 ) ;
      for ( char var_16 = 'a' ;
      var_16 <= 'z' ;
      var_16 ++ ) {
        if ( var_14 == var_16 ) {
          continue ;
        }
        var_9 . setCharAt ( var_11 , var_16 ) ;
        String var_20 = var_9 . toString ( ) ;
        if ( var_3 . remove ( var_20 ) ) {
          var_7 . add ( var_20 ) ;
        }
      }
      var_9 . setCharAt ( var_11 , var_14 ) ;
    }
    return var_7 ;
  }
  