The critical statement
Listing 1 begins just like one of the programs that I explained in an earlier lesson on the while loop.
The first and only new code in the program is the statement shown in Figure 4.
Figure 4. The critical statement in the program named Alice0170a.
testResult.set(value, (((userInputValue < 1) || (userInputValue > 3)))); duration = 0 seconds
(Note that I inserted line
breaks in different locations in Figure 4 than they are in Listing 1 to
make the statement easier to read and to understand.)