I need to create an array using a constructor, add a method to print the array as a sequence and a method to fill the array with random numbers of the type double.
He
Try this:
public void double randomFill() { Random rand = new Random(); for (int i = 0; i < this.anArray.length(); i++) this.anArray[i] = rand.nextInt(); }