Demonstrates the use of an if statement.
PRE SETUP CODE:
Scanner s=new Scanner(System.in);
System.out.println("Enter a value: ");
double x=s.nextDouble();
Set up code for tutorial. (0:10)
Create if statement (WITHOUT BRACES) and println statement associated with the if statement. (0:22)
Begin to explain the if statement and println statement. (0:42)
Execute program and explain the code as it processes through. (0:48)
Briefly review how the if statement without braces works. (1:32)