// Textbook fragment 01.05 double[] a; // ... various steps ... a = new double[10]; for (int k=0; k < a.length; k++) { a[k] = 1.0; }