>>964
Integer.valueOf(reader.readLine()).intValue();
↓
Integer.parseInt(reader.readLine());

プロパティ(たとえば座標のx、y)は隠蔽し、
外部に対してはsetting methodを提供しましょう。

static int x, y;
↓
private int x;
private int y;

public void setX(int x) { this.x = x;}
public void setY(int y) { this.y = y;}

もしくは
setPoint(int x, int y) {
this.x = x;
this.y = y;
}
とかね