import java.util.Scanner; public class TFMain { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Enter the name of a file to scan:"); String filename = scanner.next(); System.out.println("Enter a character on which to split lines:"); String splitter = scanner.next(); System.out.println("Enter a string to look for:"); String target = scanner.next(); scanner.close(); TokenFinder worker = new TokenFinder(filename, splitter, target); int value = worker.doWork(); System.out.println("Location: line:"+value/10000 + " part:"+value%10000); } }