Solved Java Program Please Explain Each Step Through

Solved Java Program Please Explain Each Step Through