/** WordTest @author John Doe Period 4 */ import java.util.Scanner; public class WordTest { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.print("Enter a word: "); String userInput = keyboard.next(); // user's inputted word Word word1 = new Word(userInput); // testing other constructor System.out.println("You entered the word: " + word1.getWord()); // testing getWord System.out.println("The first letter of your word is: " + word1.getFirstLetter()); // testing getFirstLetter word1.removeFirstLetter(); System.out.println("The word without the first letter is: " + word1.getWord()); // testing removeFirstLetter System.out.print("Enter a letter to find: "); String letter = keyboard.next(); // letter to find // more code here to test other methods of Word class } }