Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;

public class Main {
    public static void main(String[] a) {
        int array[] = new int[10];
        Arrays.fill(array, 100);
        for (int i : array) {
            System.out.println(i);
        }
        Arrays.fill(array, 3, 6, 50);
        for (int i : array) {
            System.out.println(i);
        }
    }
}