Editor: Visual Studio Code
OS: Ubuntu 20.04.5 LTS
Install Java Software Development Kit (SDK):
sudo apt-get install openjdk-8-jdk
Compiling:
javac <filename.java>
Running (run the bytecode file that has the .class extension. Don't have to type in the .class extension.):
java <filename>
- A Java
class
must be save in a file that has the same name as yourclass
. class
name must not start with a number.class
name must start with a capitalised letter.