Homeworks from Introductory Java class