Re: Array list returns null
Quote:
Originally Posted by
Scotty
Why does the arrayList return null? Im sure I have used this before.
Thanks
Looks like the object (of type State) hasn't been initialized.
If you are certain you are initializing it, you may want to check over to see if you are waiting for user input or something similar. In a past program I created, I found an object wasn't being initialized because it was waiting for user input. Hope this helps.
And by the way, it looks like you are working with arrays here, not an array list. They are quite different as an array list is dynamic (can grow and shrink) and an array is of fixed size.
Re: Array list returns null
Sorry, i have used arraylists so much lately i forgot i used an array there.
Thanks, i will check and see what i get
Re: Array list returns null