Class IntCell
java.lang.Object
|
+----IntCell
- public class IntCell
- extends Object
A class for simulating an integer memory cell
-
IntCell()
-
-
read()
- Get the stored value.
-
write(int)
- Store a value
IntCell
public IntCell()
read
public int read()
- Get the stored value.
- Returns:
- the stored value.
write
public void write(int x)
- Store a value
- Parameters:
- x - the number to store.