You seem to be incrementing i twice.

Perhaps you should change it to j++;

As it is, i is being incremented twice and j is stuck at 0.

Musta posted at same time as helloworld922.

Oh well.