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 printf() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "printf()" Watch "printf()" New topic
Author

printf()

podonga poron
Ranch Hand

Joined: May 12, 2008
Posts: 55
printf()

i'm reading a book who names "conversion types" but the * book uses all abbreviated styles, and i can't figure it out what these means ..

B = boolean ?

C = ???

D = Digit ?

F = Float ??

S = ???

thanks !
[ June 10, 2008: Message edited by: David O'Meara ]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14116
    
  16

I understand your frustration, but please do not use swear words.

The API documentation for the class java.util.Formatter contains a complete description of the format string syntax.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Ronald Schild
Ranch Hand

Joined: Jun 09, 2008
Posts: 117
Originally posted by podonga poron:
printf()

i'm reading a book who names "conversion types" but the *oops*' book uses all abbreviated styles, and i can't figure it out what these means ..

B = boolean ?

C = ???

D = Digit ?

F = Float ??

S = ???

thanks !


Consider boolean, byte, char, double, float, short, int and long. There are also wrapper classes: Boolean, Byte, Character, Double, Float, Short, Integer and Long.

There's also the String class.

They're all related in a way, up to you to find how!



ps. Please don't swear or use this forum to vent your frustration


Java hobbyist.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: printf()