JAVA求助
1我用JCreat来编辑JAVA程序,但我发现当我作APPLET时,有的时候在一个文件夹中测试时会发现错误,而到了另一个文件夹中就可以了,请问是不是在一个文件夹中后来的.class文件不能覆盖原来.class的原因?
2 在向量中, public void set(int index,Objict o)
public void setElementAt(Objict o,int index)
两者的区别是什么?
public void setElementAt(E obj, int index)
index
of this vector to be the specified object. The previous component at that position is discarded.
The index must be a value greater than or equal to 0
and less than the current size of the vector. obj
- what the component is to be set to.index
- the specified index.ArrayIndexOutOfBoundsException
- if the index was invalid.size()
, List
, set(int, java.lang.Object)