Sample Java code
- Echo (from slides) - prints out all command line arguments
- SumArray Java code that reads an integer k followed by k more integers, return the sum of the k integers.
- Factorial program (from slides). Computes factorial of number of command line.
- IO examples from class:
- IO demo File IO
- PinBallGame.java ,
Ball.java ,
QuitItem.java Pinball program (graphics)
(javac Pinball.java)