Java course project