If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

weird error

I keep getting this error: "cannot resolve symbol - constructor MyFileStructure()". I do have a class with that name, and in fact, the first time I tried to compile the code below, BlueJ even drew the arrow to the class. So why then can it not friggin see it? I even copy and pasted to make sure I had no dumb spelling mistakes in the class name.

I thought that a constructor that took no parameters was valid, whether I put one in or not. I just added a no argument constructor, and my test class compiled ok. Still can't run it, cause something is wrong with the machine. Keeps locking up when I try to run. I hate school computers.

if you don't specify any constructor at all i believe a default one is added for you when you compile it, but if you specify a constructor that takes parameters then no default constructor is added. You need to add one yourself (like you did).