Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
Printf()method works
saw mon
Greenhorn
Posts: 27
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello all,
I want to ask one question.This question is just like
System.out.printf("12%1$s","13%1$s","14%1$s");
and It prints 1213%1$s.How this result get.I don't understand.Please explain me.Thank so much.
Paweł Baczyński
Bartender
Posts: 2236
63
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This question has been asked several times on the Ranch.
An example.
https://coderanch.com/t/658590/java-programmer-OCPJP/certification/System-println
Please use the search feature.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Please explain the output of this: This question is from ExamLabs Diagnostic Test
Doubt in a practise question
ExamLab question about String formatting
Printf question
Formatted output
More...