01
02
03
04
05
06
07
08
09
package singleton.pub3.main;
import singleton.pub3.S;
public class Main {
  public static void main (String[] args) {
    S s = S.instance;
    System.out.println(s.inc());
    System.out.println(s.inc());
  }
}