Ask coding questions

← Back to all posts
I can't run any program except for the one provided to me.
RiyaJain (0)

I am unable to run any programs except for the default program. I tried to create another .java program with a main method called I also tried to create a class in my SRC folder with a main method. However, every time I press run, only the original program runs. What should I do?

Zavexeon (1041)

Not sure how to do it in Java, but you can write some code in the main file to load whatever file you want.

hayaodeh (188)

Thanks @Geocube101 for answering. @RiyaJain can you mark this post as answered, please.

Geocube101 (590) only runs the file

RiyaJain (0)

Huh, I didn't realize that. Thank you so [email protected]