Exceptioninthread"main"java.lang.ArrayIndexOutOfBoundsException:0atPoint.main(Point.java:15)
publicclasspoints{
protectedintx,y;
publicpoints(){setPoint(0,0);}
publicpoints(inta,intb){setPoint(a,b);}
publicvoidsetPoint(inta,intb){
x=a;
y=b;
}
publicintgetX(){returnx;}
publicintgetY(){returny;}
publicStringtoString()
{return"["+x+","+y+"]";}
}
但是运行的时候不对……就是一行上面的字