This is a good example of simple, readable object-oriented programming in Java. Because there is a Gradebook object, I have separated the classes into two different pages. Keep in mind that these files do NOT have to be separated. It simply makes your code more organized and easier to read.
Back to Examples