<awangdev>Encode and Decode Strings_4.java
public static List<String> decode(String s) {
        List<String> rst = new ArrayList<String>();
        if (s.equals("NULL")) {
            return rst;
        }
        int index = s.indexOf("LINE");
        while (index != -1) {
            String str = s.substring(0, index);

            StringBuffer sb = new StringBuffer();
            int i = 0;
            while (i + 3 <= str.length()) {
                int letter = Integer.parseInt(str.substring(i, i + 3));
                sb.append((char)letter);
                i+=3;
            }
            rst.add(sb.toString());

            s = s.substring(index + 4);
            index = s.indexOf("LINE");
        }
        
        return rst;
    }
public static List < String > var_1 ( String var_2 ) {
  List < String > var_5 = new ArrayList < String > ( ) ;
  if ( var_2 . equals ( "NULL" ) ) {
    return var_5 ;
  }
  int var_10 = var_2 . indexOf ( "LINE" ) ;
  while ( var_10 != - 1 ) {
    String var_14 = var_2 . substring ( 0 , var_10 ) ;
    StringBuffer var_16 = new StringBuffer ( ) ;
    int var_17 = 0 ;
    while ( var_17 + 3 <= var_14 . length ( ) ) {
      int var_22 = Integer . parseInt ( var_14 . substring ( var_17 , var_17 + 3 ) ) ;
      var_16 . append ( ( char ) var_22 ) ;
      var_17 += 3 ;
    }
    var_5 . add ( var_16 . toString ( ) ) ;
    var_2 = var_2 . substring ( var_10 + 4 ) ;
    var_10 = var_2 . indexOf ( "LINE" ) ;
  }
  return var_5 ;
}
