Tashi Phuntsok 201 571 030 332 "Object-Oriented Programming Java" the first week of learning summary

                                           "Object-oriented programming (java)" in the first week learning summary

Text at the beginning:

project content
This work belongs courses https://www.cnblogs.com/nwnu-daizh/
Where this requirement in the job https://www.cnblogs.com/nwnu-daizh/p/11435127.html
Job learning objectives

1, understand the curriculum and the way school teachers teaching requirements master courses necessary software tools;

2, understand JVM, JRE and JDK concepts, learn to download, install, test JDK;

3. Master the PATH, CLASSPATH system variable effect and sets;

4, step master command-line compiler and run Java programs;

5, grasp the Java Application Program Structure characteristics;

6, master the steps under way to develop a command line JDK to run Java programs.

7, the initial use of Elipse, learn to compile, run, debug simple Java Application program.

 

 

 

 

 

 

 

 

 

 

 

 

Part I: curriculum learning platform registered account

Platform name Registered account or a personal blog Park Address
Park blog: www.cnblogs.com https://www.cnblogs.com/zhaoyongjun0911/
Programming Evaluation: https://pintia.cn/ [email protected]
Chinese University MOOC:  https://www.icourse163.org/ 15348007637
The following answer yes or no 
Whether to join the class curriculum group blog Yes
QQ group to discuss whether to join the course Yes

 

 

 

 

 

 

 

 

Part II: theoretical knowledge and learning section

    Chapter One: Java Programming Overview

    Java key terms:

    (1) simplicity; (2) object-oriented; (3) distributed; (4) Robustness; (5) security; Neutral (6) architecture; (7) portability; (8) Explanatory; (9) of high-performance; (10) Multilinear; (11) polymorphism.

         Chapter II: Java programming environment

                  Java language foundation

                  A: cross-platform

                  B: Java language, cross-platform principle

                  As long as the operating system needs to run java applications, install a Java Virtual Machine (JVM Java Virtual Machine) can be. By the JVM is responsible for running Java programs in the system.

         (1)JRE:

                   Including the required Java Virtual Machine (JVM Java Virtual Machine) and core libraries and other Java programs, if you want to develop a good run Java programs, the computer can only need to install the JRE.

                  JRE: JVM + class library.

         (2) JDK :( downloading and setting)

       Download site: http://www.oracle.com/technetwork/java/javase/downloads

                   JDK is available to Java developers, which contains the java development tools, including the JRE. So install the JDK, you do not have a separate installation of the JRE.

          (3) where the development tools: compiler tools (javac.exe), packaging tools (jar.exe), etc.

                  JDK: JRE + JAVA development tools.

          (4) bin directory: the directory used to store a number of executable programs.

                    As javac.exe (java compiler), java.exe (java run the tool), jar.exe (Packaging Tool) and * javadoc.exe (document generation tool) and so on.

          (5) jre directory: "jre" is an abbreviation for the Java Runtime Environment, which means Java runtime environment. This directory is the root directory of the Java Runtime Environment, which includes the Java virtual machine, runtime class package, Java application launcher and a bin directory, but does not include a development environment development tool.

          (6) include directory: JDK is due by C and C ++ implementation, so when you start the need to introduce some of the C language header files, the directory is used to store these header files.

          (7) lib directory: lib library is an abbreviation, meaning Java class libraries or library file, the archive file is to develop tools to use.

                    src.zip file: src.zip for the src folder file compression file, src is placed in core classes JDK source code, you can view the source code for the Java Foundation Classes through the file.

          (8) path environment variable configuration:

                     Button click on the desktop computer → select properties → select Advanced System Settings → select Advanced tab → click Environment Variables → below the system variables find the path → Double-click the bin directory in the path → the jdk installation directory (F: \ JDK \ bin;) Tim go in and add a semicolon at the end.

                     Right-click on the desktop and select Properties → → → Click the Advanced tab select Environment Variables → Find below the system variables path → Double-click on the path → jdk bin directory under the installation directory to the left and add the semicolon.

     (10) using a command-line tool:

                      1) Open a terminal window.

      2) Enter corejava / vl2h02 / Welcome directory (the directory is mounted corejava sample source code book)

      3) enter the following command:

        javac Welcome.java

        java Welcome

Part III: Experimental part

1, experiment a Java programming environment

2. Purpose:

 

 (1) Installation and configuration of JDK master;

 

 (2) master the basic commands and steps to use JDK develop Java programs;

 

 (3) proficiency in the use Elipse integrated development environment for developing the basic steps java program

 

 (4) master the basic syntax of Java programs.

 

 3. Experimental procedure and content:

Experiment 1 JDK installation and configuration

  (1) download the JDK from the official website

  (2) Install JDK

  (3) Configuration JDK environment variables

  ① find Path, the new environment variables in the system variable D: \ JAVA \ jdk-12.0.2 \ bin;

 

  ② Press window key + R key to open the run type cmd, and to enter the end, into dos

  ③ input java -version. If you jump out of JDK version information, then the environment variable success

 

Experiment 2 download package textbook example

Download link to this page: http: //horstmann.com/corejava/, file name: corejava.zip

 Experiment 3 command-line compiler program run Welcome.java

Experiment Code

复制代码
 1 package first;
 2 
 3  
 4 
 5 public class Welcome {
 6 
 7  
 8 
 9   public static void main(String[] args) {
10     String greeting = "Welcome to Core Java!";
11     System.out.println(greeting);
12     for (int i = 0; i < greeting.length(); i++)
13     System.out.print("=");
14     System.out.println();
15   }
16 
17  
18 
19 }
复制代码

 

 

 

 

实验4 用JDK命令行开发HelloWorld!程序

实验代码

复制代码
1 public  class Helloworld{
2 
3        public static void main(String []args){
4          
5                Systeam.out.print("HelloWorld!");
6  
7        }
8 }
复制代码

 

  

 

 

实验5 下载安装Eclipse集成开发软件包

 

 

实验6 利用Eclipse开发程序输出九九乘法表

实验代码

复制代码
 1 package first;
 2 
 3   public class chengfabiao {
 4   public static void main(String[] args){
 5   for(int i=1;i<=9;i++){
 6   for(int j=1;j<=i;j++){
 7   System.out.print(j+"*"+i+"="+i*j+'\t');
 8   }
 9   System.out.println();
10   }
11   }
12 }
复制代码

 

 

 

 

实验总结

    经过这一周理论课和实验课的学习,初步的了解到了JAVA的地位,JAVA的特点,JDK的安装和使用,以及Eclispe的简单使用。在老师和助教的讲解之下对Java有了初步的认识,还有ava程序的开发步骤。希望以后在学习这门课的时候我能克服遇到的困难坚持下去。

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/zhaxipingcuo/p/11460604.html