Update Program.java

Added a loop to my simple app.