I'm new to programming in Java, and can't find any documentation on how to read one word at a time from a file (whitespace delimiting). My file is setup like so:
Red 255 0 0
Green 0 255 0
Blue 0 0 255
Yellow 255 255 0
With any number of colors listed. I'm used to programming in C++ where you can read into a string/char/int variable and it stops every time it encounters whitespace, making it easy to assign each value to struct members in a loop. Any simple equivalent in Java? All I can seem to find is line-by-line, but not word-by-word.