public static void main(String[] args) throws Exception
    {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(!in.readLine().equals(""))
        {
        
        
        String classname = in.readLine();
        String name = in.readLine();
        String room = in.readLine();
        
        String first = "package parasite.resources.locations;\n" +
"public class "+classname +" extends Location\n" +
"{\n" +
"    public "+classname+"()\n" +
"    {\n" +
"        this.name = \""+name+"\";\n" +
"        this.room = \""+room+"\";\n" +     

"    }\n" +
"    \n" +
"}";
        
        
    File file = new File("/Users/michaelk/NetBeansProjects/Parasite/src/parasite/resources/locations/"+classname+".java");
    if(!file.exists())
    {
        file.createNewFile();
    }
    FileWriter fw = new FileWriter(file.getAbsoluteFile());
    BufferedWriter bw = new BufferedWriter(fw);
    bw.write(first);
    bw.close();
    System.out.println("next");
        }
        
        
    
    }