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 ...

Get PURE Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.