comefrom: <awangdev>Word Ladder II_2.java
code: public ArrayList<String> expand(String str, Set<String> dict) {
          ArrayList<String> list = new ArrayList<String>();
          for (int i = 0; i < str.length(); i++) {
              for (int j = 0; j < 26; j++) {
                  if (str.charAt(i) != (char)('a' + j)) {
                      String newStr = str.substring(0, i) + (char)('a' + j) + str.substring(i + 1);
                      if (dict.contains(newStr)) {
                          list.add(newStr);
                      }
                  }
              }
          }
          return list;
      }
masked: public ArrayList < String > var_0 ( String var_1 , Set < String > var_2 ) {
    ArrayList < String > var_3 = new ArrayList < String > ( ) ;
    for ( int var_4 = 0 ;
    var_4 < var_1 . length ( ) ;
    var_4 ++ ) {
      for ( int var_5 = 0 ;
      var_5 < 26 ;
      var_5 ++ ) {
        if ( var_1 . charAt ( var_4 ) != ( char ) ( 'a' + var_5 ) ) {
          String var_6 = var_1 . substring ( 0 , var_4 ) + ( char ) ( 'a' + var_5 ) + var_1 . substring ( var_4 + 1 ) ;
          if ( var_2 . contains ( var_6 ) ) {
            var_3 . add ( var_6 ) ;
          }
        }
      }
    }
    return var_3 ;
  }
  