• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PrintArrayListFromMainClass

 
nermin vucinic
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this code:



I want to print this ArrayList from main class, and I used this:


but it returns list of objects represented as hash code.
How can I print this arraylist in some readable form?


 
Matthew Brown
Bartender
Posts: 4567
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to iterate across the ArrayList, printing out the details you want from each entry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic