public class TakeANumber
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static TakeANumber |
getInstance()
Returns the singleton instance of this class.
|
int |
takeTicket()
Returns an integer representing the number of the next ticket
in sequence.
|
public int takeTicket()
public static TakeANumber getInstance()