public class Main { public static void main(String[] args) { Counter c = new Counter(); // TODO: increment twice, print getCount() } } class Counter { // TODO: count, increment(), getCount() }
Output
Click Run to execute, or Check to validate.
Ask questions or share tips about this tutorial
Sign in to join the discussion