Put a print statement inside your if statement that prints: System.out.println(line.charAt(i));
That way we can see where it is seeing a non-letter character.
Does your line contain spaces?...
Type: Posts; User: aussiemcgr
Put a print statement inside your if statement that prints: System.out.println(line.charAt(i));
That way we can see where it is seeing a non-letter character.
Does your line contain spaces?...