Hi Jwenting
thanks for the reply. I tried your code but couldn't get it to compile as i wasn't sure if you meant just replace my two methods with this new code or not?
but it says several errors, one of which is arraylist cannot be resolved to type.
Any ideas?
Thanks
Yes, that replaces all the code you use to create the array.
I didn't bother to post the import statements you need, leaving that up to your imagination.
Code only works with the latest compiler also. While you can get it working with older compilers, it takes some work and isn't as easy to use.
Of course you will need to do something with the array once you've created it also
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004