// @topic S-0314-10-01-10 Java singleton design pattern // @brief Program demonstarting Java singleton class package singleton; public class AppMain { /** * @param args the command line arguments */ public static void main(String[] args) { Singleton singleton = Singleton.GetInstance(); System.out.println( "The value of the singleton: " + singleton.dummy ); //singleton = new Singleton( 123 ); singleton = Singleton.GetInstance(); System.out.println( "The value of the singleton: " + singleton.dummy ); } }