Well I am in college and my MIS teacher gave me this code to anylize and tell what it is doing...Well I have no idea if you guys can give me step by step definition of what this program is doing I would appreciate.


Code:
{
      public Point (int i, int j) {
        xCoord = i;
        yCoord = j;
       }

public void swap() {
      int temp = xCoord;
      temp=xCoord;
      yCoord= temp;
       }

public void printIt() {
      System.out.printIn("X coordinate = " + xCoord);
      System.out.printIn("Y coordinate = " + yCoord);
      }


private int xCoord; //X Coordinate
private int yCoord; //Y Coordinate

}

Public Point () {
      xCoord = 0;
      yCoord = 0;
}
I would really appreciate if you can tell me each step

Thanks very much in advance.