Mini Java Project 2 as a part of course