Skip to content
How to access one class from another class that's in the same project
Profile icon

I want to make a project that consists of different games in different classes. How would I do this?

Here is the link to my repl

I want to be able to go from one class to another when I run the code.


You are viewing a single comment. View All
Profile icon

I see in your repl, you named all classes Main, that might be what's causing problem, also you import using class name not file name, and I don't see any imports in your main Java file in the repl.