Also, i have learned that 'cd' is use to change the current directory to the specific directory.
Through this lab, I gain the knowledge of how to create a file by typing 'mkdir' followed by the name of file intended.
Then, in order to open a new file in a folder name of 'ohhuimin', I need to change the directory to 'ohhuimin' by typing 'cd ohhuimin'
Next, to create new file named of lab0, I need to type 'mkdir lab0'
This showed that 'lab0' file was already created in the folder of 'ohhuimin'.
The goal of this lab is to learned how to write, compile and run a simple computer program written in java. Before compiling the program, I learned how to check if the computer that i was using has the latest java. To check this, we go to 'local disk'(C;) and then 'program files' and search for java file and check whether the java is the latest version. 'jdk' is java development kit, this is use to write a program.'jre'is java run time environment, it use to run a program.After confirming the pc have latest version of java, now we need to check the java to see whether it can run or not by typing 'javac' in the command prompt. Before that, the name of the file in the notepad should be saved exactly the same as what was written after the word 'public class' in the notepad. Now we can compiling the program by typing java followed by the file name that we want to compile in command prompt. ( 'java file_name)
However, there were some error encountered during the experiment. I faced run time error in this experiment. I put incorrect input when running the program, this cause the computer failed to compile program.https://mylab0programking1.blogspot.com