import java.util.*;
class ArrayListTest{
public static void main(String[] args){
ArrayList al=new ArrayList();
al.add(new Point(3,3));
al.add(new Point(2,2));
al.add(new Point(1,1));
System.out.println(al);
}
}
class Point{
int x,y;
Point(int x,int y){
this.x=x;
this.y=y;
}
public String tostring(){
return "x="+x+","+"y="+y+".";
}
}
问题:
--------------------配置<默认>--------------------
Note: D:\Java\ArrayListTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
处理完成!
这是个什么问题.....
菜鸟跪谢...