Solved Write A Java Code Fragment Based On The Following

Solved Write A Java Code Fragment Based On The Following