Java Input not working (Beginner)

后端 未结 3 836
夕颜
夕颜 2021-01-22 23:34

For some reason, my code will not accept input on the last line \"What would you like to order: \"

Could anyone tell me what my error is here? It is compiling correctly

3条回答
  •  终归单人心
    2021-01-22 23:58

    insted of in.nextLine(); function you just try another scanner functions like 'in.next()'. just R&D with the methods that already give the JVM itself. you just use correct the logic and use equal() or equlIgnoreCase() methods insted of "=" operator.

提交回复
热议问题