title: Calling a constructor from a class in the main method?
body: <p>I've read some of the other questions, but still couldn't seem to figure out how to get mine to work, any help is appreciated. The code I have so far is given below. I want to be able to call a newPointParameters to create a new class. </p>
  
  <pre><code>public class Lab4ex1 {
  public static void main(String[] args) {
      System.out.println("" + 100);
  
      new newPointParameter(42,24);
  }
  class Point {
      private double x = 1;
      private double y = 1;
  
      public double getx() {
          return x;
      }
      public double gety() {
          return y;
      }
      public void changePoint(double newx, double newy) {
          x = newx;
          y = newy;
      }
      public void newPointParameters(double x1, double y1) {
          this.x = x1; 
          this.y = y1;
      }
      public void newPoint() {
          this.x = 10;
          this.y = 10;
      }
      public double distanceFrom(double x2, double y2) {
          double x3 = x2 - this.x;
          double y3 = y2 - this.y; 
          double sqaureadd = (y3 * y3) + (x3 * x3);
          double distance = Math.sqrt(sqaureadd);
          return distance;
      }
  }
  </code></pre>
  
  <p>}</p>