请求高手帮助,特别着急!!!!!!!!!!!!!!!!!!!!
public class test1 {
public static xinpoint[] pointdist;
public static void main(String argv[]){
pointdist=new xinpoint[5];
for(int xi=0;xi<5;xi++){
test1.pointdist[xi].nbdi=new LinkedHashSet();}
if(test1.pointdist[0].nbdi==test1.pointdist[1].nbdi)System.out.println("yes");
}
}
class xinpoint extends Point2D.Float{
public static LinkedHashSet nbdi=null;
}
我想问为什么结果会是yes?????谢谢了
------解决方案-------------------- public static LinkedHashSet nbdi = null;
你知道这句话的含义吗?你知道static干啥用的吗?
------解决方案--------------------