Originally posted by Kalona Ark:
...for (j = 0; j > oddNumbers.length; j++){...
Check the boolean condition in your loop for printing the contents of oddNumbers. Once you fix this simple error, I think you will like the output.
However, you might not like the output of printing the contents of the other array, allNumbers. Note that your code assigns explicit values to both arrays (oddNumbers and allNumbers)
only if i is odd (i%2 == 1).
[ November 02, 2007: Message edited by: marc weber ]