change java version command line debian

Java
sudo update-alternatives --config javasudo update-alternatives --config java
Source

Also in Java: