how do i loop this simple java code?

Printable View