Solution to Assignment 1

Here is a list of Java codes for Assignment 1: