Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

System.out.printf

807601Mar 7 2008 — edited Mar 7 2008
Hi all.
Just a question query.
I've just been taught the uses of the printf method in Java, but I'm still a little confused as to how it works.
E.g.,
System.out.printf("%o", 12); I know the o refers to octal, but I don't know much more than this. I don't want the answer (output), to this, but just a few steps on how it works to aid me in getting the answer myself. Thanks. :)

Something so simple I know...lol. :(
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2008
Added on Mar 7 2008
16 comments
464 views