File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Java's formatting capabilities Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Java Watch "Java New topic
Author

Java's formatting capabilities

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Is there any easier way of understanding how the numerous ways of formatting in java are related? I get confused of the following:



Are the above classes/methods related in anyway? What is the best way to understand the differences and which to use in which situation?

As an example, System.out.printf, System.out.format and String.format all use the same syntax and format flags. I cant see what the difference is in all three of them.

Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: Java's formatting capabilities
 
Similar Threads
Padding a string to 5 digits
Formatting a string that contains percent symbol.
percentage format
Formatting with printf() and format
Just finished my first java program :-) Can you please give me suggestions on making my code better?