Update Program.java

Added the printMessage() method.