Lesson 5.1 - Scanner
Lesson 5.1 - Scanner
Prayer
Learning Objectives
1. Explain what a Scanner
class is.
2. Create a program that uses
a Scanner class with if –
else statements
Input
Scanner
Input
Input
Come to think of it..
import.java.util.Scanner;
Scanner scanner
Scanner class
Line 7 means Java will print out Enter your Age, prompting
our user to type in a number (Age).
Scanner Class
- 2 seconds of you
- 10 seconds of your Java Codes
- 10 seconds of your Terminal Window