Discussion Board
There are no previous messagesGo to the following message
Current Forum: Homework 2 Forum
Date: Sun Sep 23 2001 9:35 pm
Author: Fagan, Matthew T. <mfagan@andrew.cmu.edu>
Subject: Problems with new

So, I'm desperately trying to get my code to compile, and I've been working through this for hours. When I have any code that says, for instance

roomList.add(new Room(x,y,id));

I get the following error:

./MazeCreator.java:24: Wrong number of arguments in constructor.
roomList.add(new Room(x,y,id));
^

If I tell it

Room blah = new Room(x,y,id);

it gives me the same error, with a carrot under new.
I'm willing to bet this is something dumb I've done, but I've been staring at a screen all day and my brain is fried...any assistance would be greatly appreciated :)
Post response

There are no previous messagesGo to the following message
Current Thread Detail:
Problems with new      Fagan, Matthew T.      Sun Sep 23 2001 9:35 pm       
Re: Problems with new      Goodman, Brian J.      Sun Sep 23 2001 9:52 pm       
Re: Problems with new      Fagan, Matthew T.      Sun Sep 23 2001 10:01 pm       
Re: Problems with new      Lee, Charles C.      Sun Sep 23 2001 11:59 pm       

Back to previous screen