I know I can check for other datatypes, such as Integer, Double etc using
scanner.hasNextInt();
scanner.hasNextDouble();
But I don't think there is one for strings.
How can I check for String input?
Edit:
I'm working on a hangman game to practice more Java, and I need to make sure the player enters a word that can be used for the other player to guess.
I'm new to programming and did not know that a string meant anything.