Skip to content

Instantly share code, notes, and snippets.

@coffeejay
Created January 15, 2014 15:46
Show Gist options
  • Save coffeejay/8438577 to your computer and use it in GitHub Desktop.
Save coffeejay/8438577 to your computer and use it in GitHub Desktop.
System.out.print("Which candidate would you like to search for: ");
String name = scanner.next();
Ballot ballot = new Ballot(name, 0.0);
int counter = ballotbox.getFrequencyOf(ballot);
System.out.println("That candidate shows up " + counter + " time(s).");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment