In this tutorial we are providing many examples of date and time formatting, number formatting, parsing, iteration over characters and words and many more.
The package java.text provides different classes and interfaces for handling
text, dates, numbers and messages in a manner. It consists of classes that
are useful for handling local customs. This package contains three main groups
of classes and interfaces:
Iteration over text
Formatting and Parsing
Through the use of this package classes, you can give any custom date and time formatting, message formatting. You can compare the strings. You can iterate words, sentences over the text.
Recommend the tutorial