This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java's formatting capabilities

 
O. Ziggy
Ranch Hand
Posts: 430
Android Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any easier way of understanding how the numerous ways of formatting in java are related? I get confused of the following:



Are the above classes/methods related in anyway? What is the best way to understand the differences and which to use in which situation?

As an example, System.out.printf, System.out.format and String.format all use the same syntax and format flags. I cant see what the difference is in all three of them.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic