python - Index syntax in Java equivalent to [1:] -


In a dragon, you can do arr [1:] , which means the index ends with 1 has gone. Is there an equivalent in java?

The closest I can think for

  (int i: arr.length) {...}     

Post text "itemprop =" text ">

Assume that 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

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -