First, update your apt package index: sudo apt update. Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions. deb sudo dpkg -i packages-microsoft-prod.
Install the OpenJDK 11 development kit, which includes OpenJRE 11: sudo apt-get install openjdk-11-jdk. The below commands will install Java Development Kit (JDK) and Java Runtime Environment (JRE) both on your system. this package manager is very useful for debian based users, it is the Only openjdk-11-jdk (why not?).