how to do this simple java program?

Printable View