Skip to content
Sign upLog in
← Back to Community

StepTracker

Profile icon
wwmachnik

I am new to Repl.it but want my students to be able to code Java at home on any device. I have one class called StepTracker with constructors and methods but now want a tester class that creates and uses a new StepTracker object. Can I do that in Repl.it? So far, no... Thanks!

Voters
Profile icon
RustemZamaliev
Profile icon
wwmachnik
Comments
hotnewtop
Profile icon
AphixDev

Yes you can! I code C# in Unity, and Java is similar. All you need to do is create a new class below your StepTracker class, and in the main function, create a new object of your StepTracker class.