Java Stdin and Stdout II

  • + 1 comment

    nextLine() methods used for getting String inputs. ... Also, next() places the cursor in the same line after reading the input. nextLine() reads input including space between the words it reads till the end of line \n.