I want to do a simple dynamic array of ints in my j2me application,
The only dynamic array I see is "java.util.Vector" and this one doesn't seem to accept an int as a new element (only wants Objects).
So how do I go around fixing that problem?
I want to do a simple dynamic array of ints in my j2me application,
The only dynamic array I see is "java.util.Vector" and this one doesn't seem to accept an int as a new element (only wants Objects).
So how do I go around fixing that problem?
You need to box the int in an Integer.
Doesn't have a setAt() method, but I'm sure you get the idea.