Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NumberDisplay {
- //...
- public void tick() {
- value = (value + 1) % limit;
- }
- public String getDisplayValue(){
- if(value < 10){
- return "0" + value;
- }
- else {
- return "" + value;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment