Developer Forums | About Us | Site Map
Search  
HOME > TUTORIALS > SERVER SIDE CODING > JAVA TUTORIALS > TAMING TIGER: FORMATTED OUTPUT


Sponsors





Useful Lists

Web Host
site hosted by netplex

Online Manuals

Taming Tiger: Formatted output
By John Zukowski - 2004-05-03 Page:  1 2 3 4 5

Conclusion and Resources

Getting a grasp of all the formatting options available with Formatter will take a little time, unless you are familiar with them from the C world. Some minor differences exist, but for the most part the behaviors are very similar. One key difference with the Java platform is that when the formatting string is invalid, an exception will be thrown.

Be sure to take a long look at the formatting strings available, as shown in the Formatter class Javadoc. When creating your own custom classes, not only should you provide a toString() implementation, but implementing the Formattable interface will typically be beneficial.

Resources



View Taming Tiger: Formatted output Discussion

Page:  1 2 3 4 5 Next Page: Let there be printf

First published by IBM developerWorks


Copyright 2004-2014 GrindingGears.com. All rights reserved.
Article copyright and all rights retained by the author.