This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes PrintArrayListFromMainClass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "PrintArrayListFromMainClass" Watch "PrintArrayListFromMainClass" New topic
Author

PrintArrayListFromMainClass

nermin vucinic
Greenhorn

Joined: Aug 23, 2011
Posts: 9
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

Joined: Apr 06, 2010
Posts: 4541
    
    8

You need to iterate across the ArrayList, printing out the details you want from each entry.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PrintArrayListFromMainClass
 
It's not a secret anymore!