BouncingBall.javaAnd that file must be in a directory called the same as its package:
BouncingBallThis package can be anywhere on your disk. In what follows I'll assume it is in c:\java\ First correct your program - because it won't compile at the moment - by adding a } missing at the end. Then:
C:\>cd \javaWhat these steps do is
C:\java>javac -cp . BouncingBall\BouncingBall.java
C:\java>java -cp . BouncingBall.BouncingBall
C:\>cd \javaCopy and post the actual output. Remember that these examples assume hat you are working from a directory called "java". If you are using Linux and can't translate the commands, say.
C:\java\>javac -cp . BouncingBall\BouncingBall.java
C:\java\>java -cp . BouncingBall.BouncingBall