how to run only specific file
i added new file and it has main method and i want to run only that file. currently it is running only first added file which has main method
Replit will run the
Main class and in this class the
main method will be called.
If you want to have two codes, you should create two repl
There is an other way but I don't think that it is a good practice (I do not know java very well)
You can call the
main method of
BestTimeToBuyStock class in the Main class
This not very clear so I made an example here
Main.java line 67
Replit helper here !
If you found my answer helpful, you can upvote it :)
If my post answers the question, mark it as the answer with the check mark !