Solved Question 4 Write Program In Java With Following

Solved Question 4 Write Program In Java With Following