How to create a sub array from another array in Java?

前端 未结 9 502
醉话见心
醉话见心 2020-11-29 16:02

How to create a sub-array from another array? Is there a method that takes the indexes from the first array such as:

methodName(object array, int start, int          


        
9条回答
  •  迷失自我
    2020-11-29 16:34

    I you are using java prior to version 1.6 use System.arraycopy() instead. Or upgrade your environment.

提交回复
热议问题