So I'm trying to figure out how to create Arrays out of Objects but I'm having a problem adding an Object to an Array.

Here's what I have:


public class Main {

double[] values = new...