Friday 1 September 2017

Java String.format vs System.out.printf

Cited from the Book Java How to Program

Static String method 'format' returns a String containing a greeting with the user’s name. Method format works like method System.out.printf, except that format returns the formatted String rather than displaying it in a command window.

No comments:

Post a Comment