台湾人什么意思?没看懂???array缺点是:大小一初始化就不能动态改变,别的container大都可以自动动态伸缩...

解决方案 »

  1.   

    可能我的(捷捷的)术语有点不合流,我的意思是:要操作基本型别的数组(或者类似的逻辑结构),比如一个int 数组,就有不能动态控制数组大小的问题。外覆类可以解决,就象:
    class Integer{
    int x;
    }
    这样,用自定义类Integer代替基本类(即基本型别),就能伸伸缩缩了。但是这样带来很多相关的问题。
    侯捷就说jdk1。4版用一个比较好的办法解决了,我就想问一下。
      

  2.   

    Vector里是用System.arraycopy实现的,不知道你说的什么意思
      

  3.   

    System.arraycopy 是指的将array临时拷到另外一个更长的数组里面去吗??
      

  4.   

    System
    static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length) 
              Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array.