This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Line 2 is not a valid statement. It would need to be: class MyClass extends java.packageName.ClassName Import is not the same as include in C++. Import just provides the namespaces to look in to find the classes that are not qualified. If you fully qualify all of the classes that you use scattered through your code, then you don't need to have import statements at all. I would NOT recommend this practice. As a matter of fact many shops insist that you list every class that you are importing specifically, just to document what you are using.
"JavaRanch, where the deer and the Certified play" - David O'Meara