import java.util.*;
import java.io.*;

/*
 * Various utilities.
 */

public class Util
{
    public static final Vector<String> readMap (String inputFile)
    {
        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        Vector<String> map = new Vector<String>();

        try
        {
            reader = new BufferedReader(new FileReader(inputFile));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                map.add(line);
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        return map;
    }

    private Util ()
    {
    }
}
@@ -82,16 +82,530 @@
  Util%0A%7B%0A
+    public static final boolean isDoor (char content)%0A    %7B%0A        return Character.isUpperCase(content);%0A    %7D%0A%0A    public static final boolean isKey (char content)%0A    %7B%0A        return Character.isLowerCase(content);%0A    %7D%0A%0A    public static final String keycode (Set%3CCharacter%3E keys)%0A    %7B%0A        String str = %22%22;%0A        Iteractor%3CCharacter%3E iter = keys.iterator();%0A%0A        while (iter.hasNext())%0A        %7B%0A            Character c = iter.next();%0A%0A            str += c;%0A        %7D%0A%0A        return str;%0A    %7D%0A%0A
     publ

Update Util.java