Java 1.5 Tiger A Developers Notebook [Electronic resources]

David Flanagan, Brett McLaughlin

نسخه متنی -صفحه : 131/ 88
نمايش فراداده

Chapter 9. Formatting

Creating a Formatter

Writing Formatted Output

Using the format( ) Convenience Method

Using the printf( ) Convenience Method

Tiger has a rather innocent looking new class called java.util.Formatter. Despite its looks, though, this one class provides new functionality to all of Tiger's output methods. To cut to the chase, all you former C programmers will finally get to compile code with printf( ) in itthere, now aren't you smiling already?