Created
November 18, 2014 20:34
-
-
Save mmoczkowski/76baf1c00b60fe4536e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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