install java 18u1.7.1 ubuntu code example
Example 1: how to install java on ubuntu 18.0.4
$ sudo apt install openjdk-11-jdk
Example 2: instalar java ubuntu 18.04
sudo apt install default-jre
$ sudo apt install openjdk-11-jdk
sudo apt install default-jre