+ 1

I bet you can't run it.

Try to run the program. https://code.sololearn.com/cacfDxD6H3Hi/?ref=app EDIT : The symbol was added by the java compiler or sth when I imported class with main in it. Every time the program is compiled, the symbol is added. The code above is edited. A code with the symbol is here: https://code.sololearn.com/cCoLCMydr68z/?ref=app

1st Apr 2017, 12:59 PM
Alex Snaidars
Alex Snaidars - avatar
9 Answers
+ 9
import java.util.*; //You shall not delete the symbol, mortal!!! //btw, I really need help public class display { public static void main(String[]args){ Scanner sc = new Scanner(System.in); } } Now it'll run
1st Apr 2017, 1:07 PM
Dev
Dev - avatar
+ 9
@Alexander In your file. Without using Scanner sc = new Scanner(System.in); you cannot use the imported Scanner class!
1st Apr 2017, 1:16 PM
Dev
Dev - avatar
+ 6
Absolutely you can use imported Scanner class
1st Apr 2017, 1:37 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 6
@luka greek question mark....? Why I feel like I see this some where?
1st Apr 2017, 3:11 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
Yes, there is characters that are not recognized by Java and you should NEVER use it
1st Apr 2017, 2:13 PM
Heng Jun Xi
Heng Jun Xi - avatar
+ 4
Ha ha Some illegal string is in front of "import" You might don't see it Yes! you don't see it. It's a magic~
1st Apr 2017, 1:26 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 1
@Dayve Did you really write this code in my file? Or rewrote to another one, huh?
1st Apr 2017, 1:12 PM
Alex Snaidars
Alex Snaidars - avatar
0
@Dayve I changed it. What now? Does it run?
1st Apr 2017, 1:20 PM
Alex Snaidars
Alex Snaidars - avatar
0
@luka hah:) Maybe the best is to write keyword or other words with partly shared chars from other langs, Russian for example whilĐ” fĐŸr сlĐ°ss dĐŸ
1st Apr 2017, 2:21 PM
Alex Snaidars
Alex Snaidars - avatar