Java Tutorial #6 — Intro to if/else logic

Topics Discussed: If/Else logic and structure, if “conditionals” Source Code for Lesson 6: import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); int a = 0, b=0; //Boolean operator. == a = 4? = a is now = 4; //If conditional -- Goes into the brackets of the if,... » read more