Yes, but it would involve creating another Scanner
object that points to a new file to read from. You can use the same name for your scanner, but that might make your code more difficult to read. Here's an example:
// files and scanners sold separately
File a = new File("a.txt");
File b = new File("b.txt");
Scanner input = new Scanner(a);
// do something
// input = new Scanner(b); // -- legal, but not recommended
Scanner inputB = new Scanner(b);