Chapter 18. Text
The java.text package contains classes and interfaces to assist you in formatting text, dates, and numbers in a manner independent of natural languages. What this really means for you is that java.text provides mechanisms for reformatting data based on a given locale, so that you can easily internationalize your applications. You can format text independently of language or locale as well. These classes can also be used simply to improve your output. For example, you can convert a Date object, which is similar to a long primitive in content, into an actual date in the form month, day number, year number. The classes here are similar to those in the java.util package, the subject of Chapter 19, "Utility Classes." There are no ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access