To get the API documentation on the web, click http://java.sun.com/javase/8/docs/api/index.html
Look for Scanner class
Read the following methods:
next() - take one word
nextInt() - take a whole number, but not End Of Line symbol (\n)
nextDouble() - take a floating point number (decimal number)
nextLine() - take everything until '\n'