New course! Every coder should learn Generative AI!
Try a free lesson0
What is mistake ????
2 Answers
+ 1
Nothing..
0
I guess you have to separate inputs with spaces or newlines. Eg:
5+7
might get consumed by the first nextInt() and produces an error because of the plus sign. When
5 + 7
or
5
+
7
will work.