File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes formatting output in printstream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "formatting output in printstream" Watch "formatting output in printstream" New topic
Author

formatting output in printstream

subhajit paul
Greenhorn

Joined: Dec 17, 2008
Posts: 17
hi all,

lets say i have a byte array declared as:



when i use


i get an output like: 2a a

can anyone suggest how to format my output as : 2a 0a

and when line 2 is changed to :


when i get an output like: 2a a?

TIA
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38025
    
  22
It's in the Java Tutorials. Look half-way down the page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: formatting output in printstream
 
Similar Threads
problem base64 encoding the 3 hex bytes E2 80 A9
Outputting to .txt
printf method help
URLBirdy(1.3.2) Create method
How to display an image that is stored in a table in Mysql , on a JSP page