© Josh Juneau 2017

Josh Juneau, Java 9 Recipes, 10.1007/978-1-4842-1976-8_4

4. Numbers and Dates

Josh Juneau

(1)Hinckley, Illinois, USA

Numbers play a significant role in many applications. As such, it is helpful to know how to use them correctly within the context of the work that you are trying to perform. This chapter helps you understand how to perform some of the most basic operations with numbers, and it also provides insight on performing advanced tasks such as working with currency. There are a number of ways to work with currency, and this chapter will focus on a couple of them.

Dates are also important as they can be used for many purposes within an application. In Java 8, the new Date-Time package called java.time was introduced. The ...

Get Java 9 Recipes: A Problem-Solution Approach, Third Edition 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.