// This program prints the total number of words in a file. public class Words { public static void main(String[] args) { int wordCount = 0; Scanner input = new Scanner(new File("wordinput.txt")); // your code goes here ... System.out.println("Total words = " + wordCount); } }