+ 8
nextLine() is used to read the input including space between the words. i.e. it reads till the end of the line.
whereas next() can only read till the space. It can't read two words separated by space.
e.g. hello world
nextLine() will read complete sentence whereas next() will only read hello



