Shows how to set up a java program without an IDE. Show how to run java from the command line. Show the use of String [] args.
15 minutes
Describe the difference between GUI OS and magic word OS. Explain why programmers prefer the latter.
Explain differences between Windows prompt and GitBash. Describe how the latter is similar to Linux.
Create a file called Hello.java using windows on the desktop.
Open a windows command prompt and execute a "DIR" command. Describe how GitBash would use "ls", instead.
Change directory ("cd") to the desktop. Do another DIR command.
Create a simple "Hello, world" program inside hello.java using a simple text editor such as Notepad.
Execute "java -version" to make sure java is installed. Mention the need for installing a JDK on the PC to run java.
Run "javac Hello.java"
Run "java Hello"
Redo the Hello program to add some command line arguments.
Rerun the program to show the use of String [] args.