public ArrayList<String> revMsg(int which) {        
      // Read the first message from standard input
      StringBuilder str = new StringBuilder();
      String holder;
        
      BufferedReader in = new BufferedReader(new 
                          InputStreamReader(System.in));
      try {
         holder = in.readLine();
         str.append(holder);
         if (DEBUG_FILE) {
            File flog = new File("log" + (char)('0' + which));
            FileWriter fw = new FileWriter(flog,true);
            fw.append(holder + " ");
            fw.append("\n");
            fw.close();
         }
         while (in.ready()) {
            int ch = in.read();
            if (ch != -1) {
               str.append((char)ch);
               if (DEBUG_FILE) {
                  File flog = new File("log" + (char)('0' + which));
                  FileWriter fw = new FileWriter(flog,true);
                  fw.append((char)ch);
                  fw.close();
               }
            }
         }
      } catch (IOException e) {
         e.printStackTrace();
      }
      if (DEBUG) {
         //Print the input
         System.out.println(str);
      }        
      return splitMsg(str.toString());
   }