TestIntCell - System.out.println( "Cell...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Exercise the IntCell class public class TestIntCell { public static void main( String [ ] args ) { IntCell m = new IntCell( ); m.write( 5 );
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println( "Cell contents: " + m.read( ) ); // The next line would be illegal if uncommented // m.storedValue = 0; } }...
View Full Document

This document was uploaded on 06/13/2011.

Ask a homework question - tutors are online