// Zorah Fung, CSE 142 // An example of using a Scanner and if/else import java.util.*; public class ScannerIfElseExample { public static void main(String[] args) { Scanner console = new Scanner(System.in); System.out.print("What is your age? "); int age = console.nextInt(); if (age >= 21) { System.out.println("Welcome to the Club!"); } else { System.out.println("No alcohol for you, minor!"); } } }