create subarray

  • Thread starter Thread starter puzzlecracker
  • Start date Start date
P

puzzlecracker

say I have an array string [] array1={"aa","bb"...};

I want to create second array that will contain all elements first
array except for the very first one ?

Thanks
 
puzzlecracker said:
say I have an array string [] array1={"aa","bb"...};

I want to create second array that will contain all elements first
array except for the very first one ?

Thanks

Well, that's pretty easy, isn't it?

But, do you really need to do that? Why not just simply not use the
first item? Or prehaps you should look earlier in the chain; where do
you get the data from in the first place, and is there a way to omit the
first item there?
 
puzzlecracker said:
say I have an array string [] array1={"aa","bb"...};
I want to create second array that will contain all elements first
array except for the very first one ?

Well, that's pretty easy, isn't it?

But, do you really need to do that? Why not just simply not use the
first item? Or prehaps you should look earlier in the chain; where do
you get the data from in the first place, and is there a way to omit the
first item there?

Well, my first item is the name of the class (which I use to create
an instance), and the rest of the arguments are parameters for a
method into that class instance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top