import java.util.*;

public class FillDemo {
   public static void main(String args[]) {
      int DevArray[] = new int[6];
      Arrays.fill(DevArray, 100);
      for (int i=0, n=DevArray.length; i < n; i++) {
         System.out.println(DevArray[i]);
      }
      System.out.println();
      Arrays.fill(DevArray, 3, 6, 50);
      for (int i=0, n=DevArray.length; i< n; i++) {
         System.out.println(DevArray[i]);
      }
   }
}
