Java heap lab 6