Storing sensor data in an array

so basically as soon as j >255 (after 255 loop iterations) it starts executing prinln 255 times per each further loop iteration. What exactly does this achieve?