• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Lists  RSS feed

 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
May i have a List in a List?

I have a LinkedList (questionsList) which i store my Question objects in. My Object class has also attributes of type LinkedList:


In main program i get my Question objects from questionsList ( it is LinkedList)
When i use and want to get options from this Question object,
it gives the last element's options. (Assume questionList.size()=5, it gives optins of the Question object which is stored index 4 )
What i miss? Any ideas?
Should i use another Collection?
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.

Use
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!