Assignment 51
import java.util.Scanner;
public class RollCall
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
String name;
System.out.print("What is your last name? ");
name = keyboard.next();
if ("Carswell".compareTo(name)>=0)
System.out.println("You don't have to wait long.");
else if ("Jones".compareTo(name)>=0)
System.out.println("That's not bad.");
else if ("Smith".compareTo(name)>=0)
System.out.println("Looks like a bit of a wait.");
else if ("Young".compareTo(name)>=0)
System.out.println("It's going to be a while.");
else
System.out.println("You're not going anywhere soon.");
}
}