|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Election2004.VoteTable
VoteTable remembers the votes for the 2004 US Presidential Election
Constructor Summary | |
VoteTable()
Constructor VoteTable initializes the table |
Method Summary | |
java.lang.String |
computeTotals()
computeTotals reports the total votes for the three candidates |
void |
voteForBush()
voteForBush adds one more vote to Bush's totals |
void |
voteForKerry()
voteForKerry adds one more vote to Kerry's totals |
void |
voteForNader()
voteFornader adds one more vote to Nader's totals |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VoteTable()
Method Detail |
public void voteForBush()
public void voteForKerry()
public void voteForNader()
public java.lang.String computeTotals()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |