This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes PrintArrayListFromMainClass Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 3792
    
    1

You need to iterate across the ArrayList, printing out the details you want from each entry.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: PrintArrayListFromMainClass
 
Similar Threads
How to return class instance?
comparing using arrays in java
ejbLoad is not getting called
Problems with Bean in JSP...
returning an int