aspose 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


Win a copy of Spring in Action this week in the Spring forum!
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: 14268
    
  21

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 8 API documentation
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: printf()