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