Edited Question1_6.java