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

php - how to change mysql_result($res, 0, "url"); to mysqli -

c# - Textbox not clickable but editable -

Matlab transpose a table vector -