All Packages Class Hierarchy This Package Previous Next Index
Class pinball.log.BallStats
java.lang.Object
|
+----pinball.log.BallStats
- public class BallStats
- extends Object
Find the statistics for the balls in play.
-
BallStats(PrintWriter)
- Creates the statistics for the balls in play.
-
process(StringTokenizer)
- Finds how long a ball was in play and the number of hits for it.
-
writeInfo()
- Writes the information about the balls to the output file.
BallStats
public BallStats(PrintWriter p)
- Creates the statistics for the balls in play.
- Parameters:
- p - the file to write the output to.
process
public void process(StringTokenizer tokens)
- Finds how long a ball was in play and the number of hits for it.
- Parameters:
- tokens - the line of tokens to process.
writeInfo
public void writeInfo()
- Writes the information about the balls to the output file.
All Packages Class Hierarchy This Package Previous Next Index