-2

I have one array, say

String[] a={a,b,c,d,e,f,g} 

I want this array in second array but without the first element in the array, for example

String[] b{b,c,d,e,f,g} 

How do I achieve this?

1
  • i tried Arrays.copyofrange(myarray,1,-) now how to find the end of the array?? Commented May 22, 2014 at 12:58

1 Answer 1

0

You can use System.arrayCopy() (jdk 1.5) or Arrays.copyOfRange() (jdk 1.6+) methods.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.