import sdsu.io.Console; class Test { public static void main( String args[] ) { StaticTest a = new StaticTest(); StaticTest b = new StaticTest(); StaticTest c = new StaticTest(); Console.println( "a's ID: " + a.myID ); Console.println( "b's ID: " + b.myID ); Console.println( "c's ID: " +c.myID ); Console.println( "c's security code: " + c.securityCode ); } } class StaticTest { public final int myID = IdRegistry.getNewID(); public final int securityCode = myID * 13; } class IdRegistry { private static int unusedId = 0; public static int getNewID() { return unusedId++; } }