Started the java program for this assignment