install and setup java on ubuntu code example Example: install java ubuntu sudo apt install default-jdk