public class Counter {
  private int value;
  
  public Counter() {
  }

  // accessor method to set the value
  public void setValue(int value) {
    // your implementation goes here
  }

  // accessor method to get the current value
  public int getValue() {
    // your implementation goes here
  }

  public static void main(String argv[]) {
    // create an object
    Counter c = new Counter();
    // set the value
    c.setValue(23);
    // print the current value
    System.out.println("The current value is: "+ c.getValue());
    // print the object
    System.out.println(c);
  }
}

    