Welcome to the Ranch
You can find out about Scanner here, and there is a section in the Java tutorials which you can find with ctrl-F-Scanner.
There is a well known pitfall with Scanner which isn’t in many of the books: I have described it here.
You got style baby! More than this tiny ad:
a bit of art, as a gift, the permaculture playing cards