ronreiter / interactive-tutorials

Interactive Tutorials
Apache License 2.0
3.97k stars 2.53k forks source link

Error in running solution for Arguments in learn java online #771

Open curiouspratik opened 7 months ago

curiouspratik commented 7 months ago

I ran the solution in https://www.learnjavaonline.org/en/Compiling_and_Running_with_Arguments But did not get any output.

Screenshot 2023-12-12 at 1 51 53 AM

I feel this issue is arriving due to the fact that in some places the file is named Arguments.java whereas in code window the file name is supposed to be Main.java. I found the file in tutorials folder and made some changes, but I am facing issues in running the code offline, can someone please help me with this? I want to contribute to this repository. Thanks in advance!

abdulrehmana28 commented 5 months ago

Hi curiouspratik, Yes in the exercise "Main.java" is the class name. So the problem is that in this exercise you have to give arguments. So for that run code through the command line and give an argument and that will display as output as shown in the image. WindowsTerminal_5ypA1FqvLz

If you still having problems let me know :)