I have a Main
java class which has the main()
method. In this method I want to use another class of that I wrote Person
. Both classes are under the same package so I understand I don't need to import the Person
class and I can use it right away.
Should I compile the Person
class first and then the Main
or not?
I tried to compile just the main
and I got error:
cannot find symbol Person