Java Stdin and Stdout II

  • + 1 comment

    but then why did scan.nextInt() took 141, it should take \n as its input, since scan.nextDouble took 1.2341 and left \n in buffer.... Please explain??