python - Index syntax in Java equivalent to [1:] -
In a dragon, you can do The closest I can think for Assume that arr [1:] , which means the index ends with 1 has gone. Is there an equivalent in java?
(int i: arr.length) {...}
Post text "itemprop =" text ">
arr [1 :] returns a copy of the array
arr where you get all the elements from index 1 end, use
Arrays.copyOfRange (arr, 1 , Arr.length);
Comments
Post a Comment