|

Use the NumberDisplay definition.
NumberDisplay [ ] nd;
nd = new NumberDisplay [ 2 ];
notes:NumberDisplay [ ] nd;
nd = new NumberDisplay [ 2 ];
nd[ 0 ] = new NumberDisplay( 10 );
nd[ 1 ] = new NumberDisplay( 24 );
nd[ 0 ].increment();
nd[ 1 ].setValue( 20 );

nd[ 1 ].getDisplayValue( ); 20