Silver Bells #CarolsInCode

public boolean soonChristmasDay(int numBells) {
  Bell[] bells = new Bell[numBells];
  if (Time.currentTime().monthValue()==12 && Time.currentTime().dayValue()<25) {
    for (int i=0; i<numBells; i++) {
      bells[i].setColour(Colour.SILVER);
      bells[i].setLocation("The City");
      bells[i].ringALing();
    }
    hearThemRing(bells);
    return true;
  }
  else return false;
}
Advertisements

3 thoughts on “Silver Bells #CarolsInCode

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s