In this chapter, you will learn:
How to format and parse dates and numbers
How to use the printf-style formatting
How to create a class that uses a custom formatter
Java provides a rich set of APIs for formatting data. The data may include simple values such as numbers or objects such as strings, dates, and other types of objects. This chapter covers formatting options in Java for different types of values. All example programs in this chapter are a member of a jdojo.format module , as declared in Listing 17-1.
Listing 17-1. The Declaration of a jdojo.format Module
// module-info.java ...