This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Printing elements from an Array in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing elements from an Array in Java" Watch "Printing elements from an Array in Java" New topic
Author

Printing elements from an Array in Java

Daniel Conner
Ranch Hand

Joined: Jan 25, 2007
Posts: 47
I have found in difficult to print a multi page document that has the elements of an array. I understand the basics of printing using the awt.print package and have no problem printing one page. But, when iterating thru an array I have found it difficult to print everything that I need to print. I was wondering if anyone has an example for me where they iterate thru an arraylist or an array and were able to print a multipage document. Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Printing elements from an Array in Java