// Allison Obourn, CSE 142 // prompts the user for words until the sentinal is reached // note: this program is in progress! This version does not // work correctly. We will finish it in class on Monday. import java.util.*; public class WordSum { public static void main(String[] args) { Scanner console = new Scanner(System.in); int count = 0; String word = ""; while(!word.equals("quit")) { System.out.print("Type a word (\"quit\" to exit)"); word = console.next(); count += word.length(); } System.out.println("You typed " + count); } }