[Solved] DrJava tells me there’s no main, but main is defined within the class declaration
That code runs just fine with the java command-line tool: java canine When you do java canine, you’ll telling the java tool to find and load the canine class and run its main method. If you were using java Animal, the issue is that Animal has no main. canine does. Clearly, class canine is -in … Read more