title: (Java) Cannot Set X and Y Points
body: <p>So far I have this in my Point class</p>
  
  <pre><code>//Data
  private int x;
  private int y;
  
  //Default Constructor
  public Point ( )
  {
      this.x = 0;
      this.y = 0;
  }
  
  //Parameterized Constructor.
  public Point (int newX , int newY)
  {
      this.x = newX;
      this.y = newY;
  }
  
  //Copy Constructor.
  public Point (Point other)
  {
      this.x = other.x;
      this.y = other.y;
  }
  </code></pre>
  
  <p>I am trying to create another class called segment that will use my Point class, and in that class I have this</p>
  
  <pre><code>private Point Point1;
  private Point Point2;
  
  public Segment ( )
  {
      this.Point1 = (0, 0);
      this.Point2 = (7, 7);
  }
  </code></pre>
  
  <p>However, I am getting an error saying that it was expecting a ")" right between each X and Y point.</p>
  
  <p>Why am I getting that error? In my point class, I have it set up so that it will accept a new X and Y and set those as the new point. So in my segment class, I am passing in an X and Y.</p>
  
  <p>Please help me or clarify what I am doing wrong. Thank you.</p>