Home Segments Top Top Previous Next

Chapter 21:

How to Perform Tests
Using Predicates

In this and the next several chapters, you set aside classes and class instances, temporarily, to learn how to do routine testing, branching, iterating, and recursing. You see that Java's mechanisms for accomplishing such tasks are not much different from those that you would find in just about any programming language.

In this chapter, you learn how to test numbers.