install java on ubuntu 20202 code example Example: how to install java 11 on ubuntu sudo add-apt-repository ppa:linuxuprising/java