*/
public class TestSingleton4 {
public static void main(String args[]) {
// Construct 2 singleton objects using the instance method
Singleton4 s4a = Singleton4.getInstance();
Singleton4 s4b = Singleton4.getInstance();
// Set the data value.
s4a.setData(34);
System.out.println("First singleton4: " + s4a);
System.out.println("First singleton4 data value = " +s4a.getData());
System.out.println("Second singleton4: " + s4b);
System.out.println("Second singleton4 data value = " +s4b.getData());
}