scan.nextLine() does not work on a while loop

后端 未结 0 642
别跟我提以往
别跟我提以往 2020-12-05 23:43

I need to read a string on a while loop, it works with sc.next(and it can only read 1 word) , but with a nextLine it skips the instruction and asks for the doubles.



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