Formatting numbers, dates and other types into Strings using Java summary
-
page1:
The background, string formatting in java
Over the years there have been no shortage of ways to
-
page2:
Formatting with String.format(..)
java.util.Formatter and String.format(..) were introduced
-
page3:
Using NumberFormat to convert numbers to Strings
java.text.NumberFormat is the class used
-
page4:
Formatting dates in Java with DateFormat
There are several ways to format dates in Java,