public class array { public static void main (String[] args){ int i[]=new int [5]; int j=0; while (j<5){ i[j]=j; System.out.println(i[j]); j++; } } }