*/
public class TestSingleton3 {
public static void main(String args[]) {
// Construct 2 singleton3 objects using the instance method
Singleton3 s1a = Singleton3.instance();
Singleton3 s1b = Singleton3.instance();
// Set the data value.
s1a.setData(34);
System.out.println("First singleton3: " + s1a);
System.out.println("First singleton3 data value = " +s1a.getData());
System.out.println("Second singleton3: " + s1b);
System.out.println("Second singleton3 data value = " +s1b.getData());
}