Solved Write Java Code For The Following Exercise Starter

Solved Write Java Code For The Following Exercise Starter