Formatting with printf() and format() with example?
How can we format with printf() and format() in java?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 24, 2014, 6:21 AM EDT
Check this link for some examples:
http://docs.oracle.com/javase/tutorial/java/data/numberformat.html
Abhijeet SinghRank #415 · 6K reputationPosted Mar 28, 2014, 9:48 AM EDT