import java.util.Scanner; public class NounCheck { public static void main(String[] args) { Scanner input = new Scanner(System.in); String uppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; System.out.print("Enter a word to test: "); String word = input.next(); String firstLetter = word.substring(0,1); if (uppercaseLetters.indexOf(firstLetter) >= 0) { System.out.println("The word you entered is a proper noun."); } else { System.out.println("The word you entered is NOT a proper noun."); } } }