示例#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;
   }
 }