Java for loop problem and out put is not coming

Printable View