title: accessing point[] method in a getter
body: <p>I am trying to access a Point[] getter method in another method but the error I am getting is on the first vertex[0].x which states that I cannot have this for a point but when I insert parenthesis, I get more errors. </p>
  
  <pre><code>public double getArea() {
      Point[] vertex = getVertices();
      double area = ((vertex[0].x, vertex[1].y - vertex[0].y, vertex[1].x +
              vertex[1].x, vertex[2].y - vertex[1].y, vertex[2].x +
              vertex[2].x, vertex[3].y - vertex[2].y, vertex[3].x +
              vertex[3].x, vertex[4].y - vertex[3].y, vertex[4].x +
              vertex[4].x, vertex[5].y - vertex[4].y, vertex[5].x +
              vertex[5].x, vertex[0].y - vertex[5].y, vertex[0].x/2)));
  
      return Math.abs(area);
  }
  </code></pre>
  
  <p>Here is a snippet of the method that contains the array:</p>
  
  <pre><code>public Point[] getVertices() {
      int x = this.getXPosition();
      int y = this.getYPosition();
      Point[] vertex = new Point[6];
      Point p1 = new Point(x+this.getWidth()/2, y);
      vertex[0] = p1;
      Point p2 = new Point(x+this.getWidth(), y+(this.getHeight()/3));
      vertex[1] = p2;
  </code></pre>