/**
 * @file Point.java
 * @author Valery Samovich
 * @version 1
 * @date 2014/01/13
 */

package com.samovich.java.basics.concepts.objects;

public class Point {

    // public fields.
    public int x = 0;
    public int y = 0;


    // constructor method with two parameters.
    public Point(int a, int b) {
        x = a;
        y = b;
    }
}
/**
 * @file Point.java
 * @author Valery Samovich
 * @version 1
 * @date 2015/01/13
 */

package com.samovich.java.basics.concepts.objects;

public class Point {

    // public fields.
    public int x = 0;
    public int y = 0;


    // constructor method with two parameters.
    public Point(int a, int b) {
        x = a;
        y = b;
    }
}

Update Point.java