主题:[讨论]求助
public void addIndexRow(int index){
if(index>=h||index<0){
throw new ArrayIndexOutOfBoundsException(index+">"+h);
}
h=h+1;
for(int a=0;a<w;a++){
MyVector selrow=new MyVector(a);
selrow.add(index,selrow.get(a));
}
//System.out.println();
}
这样对不对的啊 !为什么测试不出来啊???
谢谢 !呵呵!!
if(index>=h||index<0){
throw new ArrayIndexOutOfBoundsException(index+">"+h);
}
h=h+1;
for(int a=0;a<w;a++){
MyVector selrow=new MyVector(a);
selrow.add(index,selrow.get(a));
}
//System.out.println();
}
这样对不对的啊 !为什么测试不出来啊???
谢谢 !呵呵!!