public class Counter
extends java.lang.Object
Constructor and Description |
---|
Counter()
Constructs the counter with 0
|
Modifier and Type | Method and Description |
---|---|
int |
Next()
Gives the next number (first increase. then return)
|
int |
Peek()
Shows the current number without increasing it
|