To begin with, let's write a very simple Java program. We'll start by importing java.util so that we can get some user input via a Scanner object, and we'll link this Scanner object with the System.in input string so we can use it in the console window.
Once we've done this, we're going to need to get some input from the user and store it, so let's create a new string and assign its value to whatever the user gives us. To keep things interesting, let's give ourselves two more String variables to work with. We'll call them sOne and sTwo; we'll assign the value of our first string variable to abc and the value of our second string variable to just z:
package complexconditionals; import java.util.*; public class ComplexConditionals { public static void main(String[] args) { Scanner reader = new Scanner...