sudo apt update && sudo apt upgrade -y
sudo add-apt-repository ppa:linuxuprising/java -y
sudo apt update
sudo apt-get install oracle-java17-installer oracle-java17-set-default
java -version #To Test
# Open terminal and run command to add the PPA:
sudo add-apt-repository ppa:linuxuprising/java
# After adding PPA, refresh system package cache and install the script:
sudo apt update
sudo apt install oracle-java16-installer