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.
A very common problem, partially caused because so many sources, even the Java Tutorial, put too much coding into the main method. That is convenient because they can get more code into less space, but it isn't good object-oriented programming. The main method should have very little in it; if you get down to one statement, so much the better. If your test method is in a class called HelloClass, try this:-You are actually creating an object there.