editing java codes 1

Hello.

I have some java codes that I need you to edit to look different than the ones in the answers in the document.

The old answers are under the answers headline in red and I need you to replace them with other answers that work but LOOK DIFFERENT from the ones in the paper.

Please pay special attention to questions 6 and 7 and make sure you put the answers in RED under each questions and make sure they work properly.

This is a simple assignment that just needs editing.