Revised NoMethods.java so that it follows the exercise instructions
(Exercise 4).