Solved I Need Help With This Java Program Write A Method

Solved I Need Help With This Java Program Write A Method