Exemple #1
0
 public Boolean removeDot() {
   if (getDotCount() > 0) {
     setDotCount(getDotCount() - 1);
     return true;
   } else {
     return false;
   }
 }
Exemple #2
0
 public Boolean putDot() {
   if (getDotCount() < MAX_DOT_COUNT) {
     setDotCount(getDotCount() + 1);
     return true;
   } else {
     return false;
   }
 }