Solved Java Question Please Do This Question Step By

Solved Java Question Please Do This Question Step By