// Helene Martin, CSE 142 // Prompts a user for words and reports the total letters typed. import java.util.*; public class WordSum { public static void main(String[] args) { Scanner console = new Scanner(System.in); System.out.print("Type a word or \"quit\" to quit: "); String word = console.next(); int letters = 0; while (!word.equals("quit")) { letters += word.length(); System.out.print("Type a word or \"quit\" to quit: "); word = console.next(); } System.out.println(letters); } }