Hello all,
I think I need another pair of eyes for this because I just don't see why the error is coming up. Here's the setup...I have a driver class that initiated the whole process. There are 4 other java files in a package. One java file in that package basically runs the show by doing all the logical thinking for the simple program (called "trip.java". The problem is that the trip class needs to instantiate an object of one of the other classes in the java files (called the "fleet class" in this case). The statement I have used is the same thing I've used for other projects and have no problem. It goes as follows:
fleet fl = new fleet();
I get the following error from this:
java:18: cannot resolve symbol
symbol : class fleet
location: class tripSpec.trip
public fleet fl = new fleet();
The fleet class file itself it very simple, with just a few getter and setter methods inside. Am I missing something?
Thanks,
Jisoo22
I think I need another pair of eyes for this because I just don't see why the error is coming up. Here's the setup...I have a driver class that initiated the whole process. There are 4 other java files in a package. One java file in that package basically runs the show by doing all the logical thinking for the simple program (called "trip.java". The problem is that the trip class needs to instantiate an object of one of the other classes in the java files (called the "fleet class" in this case). The statement I have used is the same thing I've used for other projects and have no problem. It goes as follows:
fleet fl = new fleet();
I get the following error from this:
java:18: cannot resolve symbol
symbol : class fleet
location: class tripSpec.trip
public fleet fl = new fleet();
The fleet class file itself it very simple, with just a few getter and setter methods inside. Am I missing something?
Thanks,
Jisoo22