Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;
import java.util.Random;

public class Main {
    private static double[] anArray;

    public static void main(String args[]) {
        anArray = new double[10];
        Random rand = new Random();
        for (int i = 0; i < 10; i++) {
            anArray[i] = rand.nextInt();
        }
        System.out.println(Arrays.toString(anArray));
    }

}