+ 11
Plz tell what are the errors in the following program
6 odpowiedzi
+ 5
Line 6:
Scanner sc = new Scanner(System.in);
Notice I removed the space after `System.in`
Please tag Java only, no need to tag `importjava.util.*;class` ☝
Edit:
Code has been updated
Tags have been updated 👍👍👍
+ 7
Thanq Ipang I didn't noticed that.....thanq so much brother🤗
+ 6
Martin Taylor I tried compiling the program after removing the space...nd by using '%' instead of '/' ......nd it gave the correct output......thnks for ur answer...
+ 3
You're welcome 👌
I also wonder why that one space should cause a problem. I thought it'd be ignored instead. Hope someone who knows why can answer here ...
+ 1
I guess only issue in SoloLearn..