Assignment 4(Java)  for CSC 322 - Programming Languages