Not sure "infinite array" would be the right term but,
Is there away to define an array of unspecified size ?
Say if i need to store a bunch of int's in an array, but i and the user thats going to enter them doesn't know how many there is going to be. I guess i just don't wanna waste the memory by using a big partially filled array.
Please ignore my ignorance, im still very new to java.
Flo
Is there away to define an array of unspecified size ?
Say if i need to store a bunch of int's in an array, but i and the user thats going to enter them doesn't know how many there is going to be. I guess i just don't wanna waste the memory by using a big partially filled array.
Please ignore my ignorance, im still very new to java.
Flo