Where to Add Main Method Java
<p>I have this code block which requires a main method in order to be run. </p>

<pre><code>public class Point {

    private int xcoord;
    private int ycoord;

    public Point () {}

    public Point (int x, int y) {}

    public int getX () {
        return xcoord;
    }

    public int getY () {
        return ycoord;
    }

    public void moveUp(int amount) {}

    public void moveDown(int amount) {}

    public void moveRight(int amount) {}

    public void moveLeft(int amount) {}

}
</code></pre>

<p>I've tried adding in <code>public static void main(String[] args){</code> below <code>public class Point</code> but it causes problems throughout my program (saying Public Point () needs to be declared as new) and I close out the main method beneath the <code>MoveLeft</code> method closing colon and the <code>public class</code> Point closing colon, like this:</p>

<pre><code>public class Point {

    private int xcoord;
    private int ycoord;

    public static void main(String[] args){

        public Point () {}

        public Point (int x, int y) {}

        public int getX () {
            return xcoord;
        }

        public int getY () {
            return ycoord;
        }

        public void moveUp(int amount) {}

        public void moveDown(int amount) {}

        public void moveRight(int amount) {}

        public void moveLeft(int amount) {}
    }

}
</code></pre>