This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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.