Solved Translate This Program Into Java I Need This

Solved Translate This Program Into Java I Need This