What are you trying to do? Once you read a line, that line is read. There's no way to reverse a Scanner. But you can then do whatever you want with the line once it's read, so I'm not sure what the...