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