Two 2 Java Files Counterjava Driverjava 2 Two 2 Class Files Counterclass Driverclass Publ Q10059305

Two (2) .java files (Counter.Java and Driver.java). 2. Two (2).class files (Counter.class and Driver.class public class Driver {public static void main(String[] args) { Counter c = newCounter(1000); c.count(); c.count(); System.out.println(“After 2counts: Count (1) = ” + c.getCount()); c.count(); c.count();System.out.println(“After 4 counts: Count(1) = ” + c.getCount());c.reset(); System.out.println(“After reseting: Count (1)= ” +c.getCount()); } } once starting the counter at 0, and oncestarting the counter at 1000

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *