Originally Posted by
robingeldolf
i need to now how i can put the output from this code
for( int j = 0 ; j < start.length; j +=2 ) {
System.out.print( start[i] + " ");
into a new for loop.
What do you mean into a new loop? A different loop? A nested loop? Something else?
And for the record, how I would remove an element from an array is by creating a new array with a length one less than the current array, then copy over every value from the current array except the one you want to remove. You could optimize this if you figured out how many elements you would be removing beforehand.