Simple JAVA Program Exercise