raspberry stackexchange how to install the java jdk

Java
sudo apt-get install openjdk-7-jdksudo apt-get install openjdk-7-jre
Source

Also in Java: