SOLVED: Prints the result to submission.txt. import java.util.Scanner; public class Counter public static void main(String[] args) Scanner input = new Scanner(System.in); int count = 0; while (input.hasNext()) String word = input.next(); System.out ...