I got the code right so it works in the browser and is correct . But if I run the same code on IntelliJ, the program just says: /Users/test/Desktop/jdk-15.0.1.jdk/Contents/Home/bin/java -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=63276:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/test/Desktop/IDEA projects/CodeGymTasks/out/production/1.JavaSyntax com.codegym.task.task03.task0318.Solution and nothing else ... Anyone knows what I did wrong? Thank you 😇
Task in IntelliJ
You must be signed in to leave a comment
2 December 2020, 15:14
With the online compiler, below the task code, there is a box to enter user input. This is what the online compiler uses to "get" input from the user. In intelliJ there is no such box. You have to manually enter the user input after you start the task, as should be the case for user input. This is what it is waiting on, for your input (the BufferedReader.readline() or Scanner.nextLine() depending on which you used).
2 December 2020, 15:49
Ok , I think I understand why it didn't work. Thank you! I used the BufferedReader. So in IntelliJ where can I manually enter the input?
2 December 2020, 16:01
Right under the: /Users/test/Desktop/IDEA projects/CodeGymTasks/out/production/1.JavaSyntax com.codegym.task.task03.task0318.Solution Its a cmd line. Just click to move your cursor there.
3 December 2020, 12:53
Thanks a lot! :)