import java.awt.Point;
public class Proof {
public static void main(String[] args) {
Point[] points = new Point[1000000];
for (int i = 0; i < points.length; i++) {
points[i] = new Point((int) (Math.random() * 1000), (int) (Math
.random() * 1000));
}
long time = -System.currentTimeMillis();
for (int i = 0; i < points.length; i++) {
int a = (int)points[i].getX();
int b = (int)points[i].getY();
}
System.out.println((time + System.currentTimeMillis()) + "ms");
time = -System.currentTimeMillis();
for (int i = 0; i < points.length; i++) {
int a = points[i].x;
int b = points[i].y;
}
System.out.println((time + System.currentTimeMillis()) + "ms");
}
}