Scanner in = new Scanner(System.in); while(in.hasNext()){ String c = in.nextLine(); &...