Skip to content

Instantly share code, notes, and snippets.

@mmoczkowski
Created November 18, 2014 20:34
Show Gist options
  • Save mmoczkowski/76baf1c00b60fe4536e1 to your computer and use it in GitHub Desktop.
Save mmoczkowski/76baf1c00b60fe4536e1 to your computer and use it in GitHub Desktop.
public void vote(int candidate) {
/*
switch(candidate) {
case Canditate.DZIERZAWSKI: ++mDzierzawskiVotes; break;
case Canditate.ERBEL: ++mErbelVotes; break;
case Canditate.GORAYSKI: ++mGorayskiVotes; break;
case Canditate.GRONKIEWICZ-WALTZ: ++mBitchVotes; break;
case Canditate.GUZIAŁ: ++mGuzialVotes; break;
case Canditate.NOSAL-IKONOWICZ: ++mIkonowiczVotes; break;
case Canditate.ROZENEK: ++mRozenekVotes; break;
case Canditate.SASIN: ++mSasinVotes; break;
case Canditate.WIERZBICKI: ++mWierzbickiVotes; break;
case Canditate.WIPLER: ++mWiplerVotes; break;
case Canditate.WRZESIŃSKI:+ ++mWrzesinskiVotes; break;
default: thrown new UnknownCandidateException();
}
*/
++mWiplerVotes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment