Just a quick question about being able to see an output from the tasks. As an example, when I passed the task 0820, Animal Set, the output doesn't show anything in intellij, even though the code has System.out.println(object); in the printPets method.
I'd like to be able to see the output for the tasks in general, not just for this task. Any idea what I have to do to see outputs for the tasks? Thx.
p.s. I've included the screenshot of the bottom portion of the intellij, where it just says, "Process finished with exit code 0", but not the output.
Hi all, a short question regarding outputs in intellij, in general
Resolved
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
2 May 2021, 19:25
Code starts in the main method. If there are no code paths from their to your println() method then there would be no output.
0
ImDevin
2 May 2021, 23:37
thx for the reply, but I don't quite understand what you mean. What can I do to fix this then? Thx.
0
Guadalupe Gagnon
3 May 2021, 13:57
When the program is started, when you hit the run button, the code will be executed line by line starting in the main() method until it reaches the last line of main, excepting errors occurring and multithreaded applications.
It doesn't matter if you have 15 lines of code or 100 million; if there is nothing in main then nothing will be run.
0
ImDevin
4 May 2021, 14:48
ok. I think I know what's going on now. thx for the reply.
0