I am trying to make a boolean test so that if one of the tire pressures is below 35 or over 45 the system outputs \"bad inflation\".
In my class I must use a boolean, wh
It looks like you're never setting goodPressure to true. Maybe you want to start with it set to true, as it looks like your conditions will set it to false if necessary.
Also, I think this line should throw a compiler warning (or error?)
if (goodPressure = true)
when compiling in Java. I thought the compiler wouldn't let you do an assignment in an if check, but maybe it does... I think you want it to be:
if (goodPressure == true)
Or just:
if (goodPressure)