Revert "Update Program3.java"

This reverts commit 53c2f84d70fb475b8c9691364c041ffafe6f0347.