OK, I'm doing a project that in which one class uses another.
I have:
C:\simulation\Person.java
C:\simulation\Person.class (already compiled)
C:\simulation\Simulation.java
Simulation.java uses class Person as this:
publiuc Person newPerson = new Person("John", "Doe"
But when I try to javac Simulation.java, it outputs:
Simulation.java:9: cannot resolve symbol
symbol : class Person
location: class Amway
public Person newPerson = new Person("John", "Doe"
How can I use Person.class in Simulation.java?
Thanks you very much in advance...
Rastko
I have:
C:\simulation\Person.java
C:\simulation\Person.class (already compiled)
C:\simulation\Simulation.java
Simulation.java uses class Person as this:
publiuc Person newPerson = new Person("John", "Doe"
But when I try to javac Simulation.java, it outputs:
Simulation.java:9: cannot resolve symbol
symbol : class Person
location: class Amway
public Person newPerson = new Person("John", "Doe"
How can I use Person.class in Simulation.java?
Thanks you very much in advance...
Rastko