I cannot figure out how to fix this error message - can anyone please help!!
K:\Homework\Java\StateA.java:13: cannot find symbol symbol : variable keyboard location: class StateA input = keyboard.nextLine(); ^ 1 error
Tool completed with exit code 1
-------------------------------------------------------- Here's my code: ***************
import java.util.Scanner;
public class StateA { public static void main (String[]args) { String input;
Scanner kayboard = new Scanner(System.in);
System.out.println("Please enter one of the following state abbreviations: "); System.out.println("NC, SC, GA, FL, or AL"); input = keyboard.nextLine();
if (input.equalsIgnoreCase("NC")) { System.out.println("You've entered the abbreviation for North Carolina"); } else if (input.equalsIgnoreCase("SC")) { System.out.println("You've entered the abbreviation for North Carolina"); } else if (input.equalsIgnoreCase("GA")) { System.out.println("You've entered the abbreviation for North Carolina"); } else if (input.equalsIgnoreCase("FL")) { System.out.println("You've entered the abbreviation for North Carolina"); } else if (input.equalsIgnoreCase("AL")) { System.out.println("You've entered the abbreviation for North Carolina"); } else { System.out.println("You've entered an incorrect abbreviation"); } } }