Updated LabA1.java