Completed Problem6 and Problem7

Uploaded Problem 6 and Problem 7 .class and .java solution files.