C-Style formatted I/O with Java Tiger (J2SE 5.0)

In Java 5.0 you will be able to use printf in much the same way that printf is used in classic ANSI C.

To give an example, here we have a String named user and an integer total.

System.out.printf("name count\n"); 
System.out.printf("%s %5d\n", user,total);

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings

Copyright 2006-2019. Infinite Loop Ltd