This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I'm just starting to re-learn java. I've been going over some old notes I have and creating some basic applets. The point I've gotten to so far is writing a class, then importing into another java file. I've written and compiled MyClass.java to get MyClass.class. In Applet19.java, I have the following line,
that's what it says in my notes.
When I compile it, the error message is,
So I put in a dot, '.', recompiled and this time the error message was,
So I put in an asterisk, '*', and this time the error message was,
I can't think of anything else to do. What error am I making? What is the correct syntax (?) for importing your own defined class into another java file .