I'm trying to scan a string from a file that has int, words and double numbers. I want to just print the words, how do I ignore the double type numbers in the file? I was thinking this would work...
Scanner scanner = new Scanner(line); scanner.useDelimiter(double); System.out.print(scanner.next() + " ");
Delimiter doesn't like it when I don't have " " and a character with it.