More Advanced Conditional Statements

AS your applications become more complicated, you can expect your decisions to become more complicated. There are three ways this can happen. First, is a sequence of conditions, checking against the same variable. So in our last decision example, we mentioned how we cannot ask “What color is the shirt?” However, we might ask: “Is…

Conditions in Java

You will find conditions in Java familiar if you are used to using boolean conditions in C/C++. However, noticed that I said boolean conditions. That is because Java wants boolean conditions, those that generate a true or false answer, instead of the C/C++ conditions which actually look for an integer value. Notice the following below…