public class Data
extends java.lang.Object
| Constructor and Description |
|---|
Data(int number)
This constructor creats a new Data object, initialising
its value to the specified argument.
|
public Data(int number)
number - The value to store in this Data object.public int getNumber()
public void setNumber(int number)
number - is the value to store in this Data object.public java.lang.String toString()
toString in class java.lang.Object