public class SINCard extends Object
Constructor and Description |
---|
SINCard()
Initializes this SIN card with a random number.
|
SINCard(int number)
Initializes this SIN card with the given number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEven()
Tests whether the number of this card is even.
|
String |
toString()
Returns a string representation of this card.
|
public SINCard(int number)
number
- the number of this card.public SINCard()
public String toString()
public boolean isEven()