Skip to content

Instantly share code, notes, and snippets.

@Gideon877
Last active July 9, 2019 12:54
Show Gist options
  • Save Gideon877/cf2419de837aebdc5f792f0c722d9c44 to your computer and use it in GitHub Desktop.
Save Gideon877/cf2419de837aebdc5f792f0c722d9c44 to your computer and use it in GitHub Desktop.

Java from command line.

In this exercise we are going to practice how to use java, and javac to compile and run a specific java file.

  1. Create a SayHello.java file using the terminal.
  2. Open in an editor(can be vs-code or gedit)
  3. Create a sayHello class
  4. Create a public main class
  5. Print message 'Hello, Umhlaba!'.
  6. Compile the program using javac
  7. Run the program using java fileName.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment