Solved Write One Java Program To Implement The Following

Solved Write One Java Program To Implement The Following