这样写程序对吗?
/*MyPoint*/
public class MyPoint{
public class Static Void main (String arg[]){
class MyPoint {
int x;
int y;
}
MyPoint start;
start = new MyPoint();
MyPoint end;
end = new MyPoint();
start.x = start.y = 10;
end.x = end.y = 20;
System.out.println ("Start MyPoint = x:"+start.x+"y"+start.y);
}
}