inkedmn
11-08-2002, 03:32 PM
let's say i have an array of 10 Strings in it, and i want to take everything from array[4] through the end of the array and add it to a new/different array. is there an easy way to do that? besides iterating over both arrays and nesting loops, etc.
Dru Lee Parsec
11-08-2002, 06:12 PM
Iterating over both arrays would be the easiest way I can think of. You wouldn't need nested arrays. Since you're using the String object you can use Vector or ArrayList instead of an actual array and that would make it easier to use (no worries about allocating enough spaces in your array).
Hope it helps ;)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.