installing the latest version of eclipse on ubuntu code example
Example: download eclipse for ubuntu
sudo apt install default-jre
sudo snap install --classic eclipse
sudo apt install default-jre
sudo snap install --classic eclipse