Why the Scanner#nextInt method does not consume the last newline character of input in Java

前端 未结 0 732

Why it is not taking String input? Is this is issue with Scanner class sould i use bufferreader class

    ```int i = scan.nextInt();```
    ```double d = scan         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题