Code of Q1
Completion requirements
Click class_activity_1.java link to view the file.