Gr 11 12 Not !

In Java “not” is a bit awkward when used with a String method like “equals” if (name.equals(“steve”) {    } is easy to understand. If the name equals “steve” then execute the code block that follows. What about if the...

Gr 11 – Switch Case

Complex “if-then-else” statements are needed when there are many options e.g. consider all the options in a menu. Fortunately, there is a better way when a lot of options are needed i.e. the “Switch-Case-Break” construct. It works exactly the...