package class3_3_Increment_start; import java.util.Scanner; public class Increment { public static void main(String[] args) { int[] a = new int[5]; int i = 0; while (i < 4) { a[++i] = 7; } // Because of the pre-increment, the first time through the loop // has a value of 1 instead of 0: for (i = 0; i < 5; i++) { System.out.println(a[i]); } } }