|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Information about an entire collection of baseball2 teams.
In addition to the methods specified here, the class should
provide a constructor which takes one parameter, a file identifier.
The file is expected to contain information about teams.
Method Summary | |
int |
addHitterInformation(java.lang.String fileID)
Read player information from a file and remember it. |
int |
addPitcherInformation(java.lang.String fileID)
Read player information from a file and remember it. |
void |
printAllStarBallot()
List all players (except pitchers), in order of their positions. |
void |
printMVPList()
List players in descending order of "value" (in baseball terms). |
void |
printPlayers()
Print all the players in order, one per line. |
void |
printPlayers(java.lang.String teamName)
Print in order, one per line, the players who play for the given team. |
void |
printTeams()
Print the teams in order, one per line. |
Method Detail |
public int addHitterInformation(java.lang.String fileID)
fileID
- identifier (local name or URL) of a file containing
information about players who are hitters.
public int addPitcherInformation(java.lang.String fileID)
fileID
- identifier (local name or URL) of a file containing
information about players who are pitchers.
public void printTeams()
public void printPlayers()
public void printPlayers(java.lang.String teamName)
teamName
- the name of a team. The name should treated
case-insensitively.public void printMVPList()
public void printAllStarBallot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |