Objectives
How to make poorly structured and incomplete conditionals
How to write gnarled and error-prone expressions
What nesting is and how you can abuse it to write complicated code
Prerequisites
For-each loops
Basic String methods in Java, particularly equals, substring, length, and charAt
The basic idea behind reading files in Java
Logical operators (&&, || and !)
Introduction
Conditionals (like if statements and select statements) allow the computer to choose automatically between different possibilities. ...