I've used the scanner class before, and I know how to use the delimiter and all that, but I have come to a problem. For my program to work(it parses data into a text file which is being separated by tabs to specify which object it's using, if that makes sense), I need to be able to grab every integer inside the text file that's being separated.
I'll show an example:
This is what's inside the text file
robert = 30\t 55\t 5005\t 500
Now I want to print out the numbers separately like this
robert
=
30
55
5005
500
Any way I can do this?
I've seen people do it using buffered reader, but in my opinion it's a hassle and takes too much code.