Hi there,
I have a class which i'll call MyNumbers which basically lets you create an object which is a number with an odd even flag.
Now i have another class which needs to create a range of these numbers and then choose a random odd or even number from the list and remove it.
I originally thought i could store these in an ArrayList but am unsure how i would go about selecting a random odd or even.
Should i be using some other structure to store it?
Any help would be greatly appreciated.
Jon
I have a class which i'll call MyNumbers which basically lets you create an object which is a number with an odd even flag.
Now i have another class which needs to create a range of these numbers and then choose a random odd or even number from the list and remove it.
I originally thought i could store these in an ArrayList but am unsure how i would go about selecting a random odd or even.
Should i be using some other structure to store it?
Any help would be greatly appreciated.
Jon