import java.util.Scanner;

class Sep4 {
	public static void main(String[] args) {
	
		Scanner kb = new Scanner(System.in);

		System.out.println("Enter integer");

		int height = kb.nextInt();

		System.out.println("Your height is: " + height);

		System.out.println("Enter greeting");
	
		String greeting = kb.next();	

		System.out.println(greeting);


		if (height == 1234) {
			System.out.println("bingo");
		}
		else {
			System.out.println("Not 1234");
		}

		if (height != 1234) {
			System.out.println("Not 1234");
		}
		else {
			System.out.println("bingo");
		}

		// comparing primitives we use ==

		char initial = 'A';

		if (initial == 'Z') {
			System.out.println("Found z");
		}

		// comparing reference types use .equals()

		if (greeting.equals("bye")) {
			System.out.println("Leaving now");
		}
	
		if (initial == 'A' && greeting.equals("bye")) {
			System.out.println("A and bye");
		}

		// learn truth tables for &&, ||, and !

	}
}


