This is code from reading & working through the Java Programming 24-Hour Trainer book by Yakov Fain