End of the Chapter

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   hear noise  

People may enter a contest UNLESS they are less than 21 years old, make more than $100,000, or live in Ohio. The boolean expression is grouped so that it is true when a person CAN enter the contest.

Answer:

!( age < 21 || pay > 100000 || home.equals("Ohio") )

End of the Chapter

You have reached the end this chapter. You may wish to review the following. Click on a subject that interests you to go to where it was discussed.

You have reached the end of the chapter.

go to previous page   go to home page