Sunday, September 23, 2018

I am the beginner in studying Programming 1 as this is my first time studying the this subject. I know nothing about this subject at the first lecture and lab.

I have learnt how to use computer app, Command Prompt. I searched the Command Prompt application via browsing 'cmd' in the windows search box. I have navigate through the folders using the 'dir' cmd to list all the files in current directory. Then, I use the command 'cdname_of_directory' to change my directory to the specific directory.

I can browse to any folder by using Command Prompt by using current command that I have learnt before.

The best part is I can create a new folder through this Command Prompt application. Creating a new folder in the hard disk is by typing 'mkdir nasr' and inside this folder I create another folder which is 'lab0'. After that, create a file which is notepad. The file is saved as type; *Java and the file name must same as the class name.

If the java compiler have downloaded to the computer, we can run the compiler by issuing the command 'javac' in the command prompt.

To compile the file,  we need to type javac... , while to run the file, we need to type java.....
To save file, need to open my computer >right clicks>advanced system setting > environment variable variables> path> type ;>paste java address> new>variable name:class path>variable value: .,

We need to create a simple Java program using notepad and typing the code given into the file called "MyFirstJavaProgram.java". and compile the java program :javac MyFirstJavaProgram.java.

After successfully compiles the source code, until no error we can run the program by typing the command
: java MyFirstJavaProgram.

I learnt several things in this subject as this is my first time studying subject Programming.I am excited to learnt new things for the next lab, as there are many things that I need to study to have ore knowledge in this subject.

https://darinaprograms.blogspot.com/2018/09/lab0.html

No comments:

Post a Comment