Simple cross-platform implementation of Pong using pure Java.
Assuming Git and JDK 7 or newer is installed, open a terminal and enter:
git clone https://github.com/NikhilJArora/pong.git
cd pong
# compile the game
javac src/com.nikhiljarora/pong/Pong.java -d out/
# run the game
java src/com.nikhiljarora/pong/Pong