void subtractFlakes(int quantity){
  for (int i=0; i < quantity; ++i) {
    int index=numFlakes - i - 1;
    flakes.remove(index);
  }
  setNumFlakes(numFlakes - quantity);
}

void subtractFlakes ( int quantity ) { for ( int i = 0 ; i < quantity ; ++ i ) { int index = numFlakes - i - 1 ; flakes . remove ( index ) ; } setNumFlakes ( numFlakes - quantity ) ; }
subtract the specified number of droidflakes . we just take them off the end of the list , leaving the others unchanged .
