I am new to Java and I need to store a big array of points (x, y float coordinates). Which of the options is better for storing in a big array (uses less memory)?

Point class:

```
// It`s in the same file as my main class

class Point {
    public float x;
    public float y;

    public Point(float x, float y){
        this.x = x;
        this.y = y;
    }
}

```

or an array of arrays:

```
float[] point = { 0.0f, 0.0f };
float[][] positions = { //Multiple Pointes here\\ };

```