• Post Reply Bookmark Topic Watch Topic
  • New Topic

list traversal  RSS feed

 
akhter wahab
Ranch Hand
Posts: 151
Java MyEclipse IDE Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys

here driver() has dynamic number of the objects of type IndigoResponseWrapper
each object have multiple attributes say a,b,c,...z
i want to print each attribute of each object of type IndigoResponseWrapper
please guide me new with the list
 
subodh k kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iterate the List using iterator and override toString() method in IndigoResponseWrapper with your attribute printing logic.
 
Campbell Ritchie
Marshal
Posts: 56585
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the Java™ Tutorials about Collections, That might help.
 
akhter wahab
Ranch Hand
Posts: 151
Java MyEclipse IDE Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i also found a good link for list traversal Link
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!