This page provides many examples of computer programs written with the Java programming language. This is also the homepage of a book named A Natural Introduction to Computer Programming with Java.
The table contains links to examples of Java programs. Note also that there are some links to videos that explain the programs.
You need to download and install the Java SE Development Kit (JDK) to compile and run Java programs. You can find information related to the installation and compilation if you check the comments at the beginning of file Game.java.