201871010105- Cao in "object-oriented programming (Java)" in the first week learning summary

201871010105- Cao in "object-oriented programming (Java)" in the first week learning summary

project content
This work belongs courses https://www.cnblogs.com/nwnu-daizh/
Where the job requires https://www.cnblogs.com/nwnu-daizh/p/11435127.html
Target operational requirements

1. Understand the school curriculum and the way teachers teaching requirements master courses necessary software tools;

2. Understand the JVM, JRE and JDK concepts, learn to download, install, test JDK;

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

4. Master command-line compiler and run a Java program steps;

5. grasp the characteristics of Java Application Program Structure;

6. The next step to grasp JDK command line developed to run Java programs.

7. initially use Eclipse, 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/nwnucyz/

Programming Evaluation: https: //pintia.cn/ Wow dinosaur
Chinese University Mooc: https: //www.icourse163.org/ 18919431467
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

       The first chapter is an overview of Java programming, mainly, a brief history of the development of the Java programming platform, aspects of the "White Paper" of key terms, common misconceptions, Java applet and the Internet and so on. According to my understanding of learning Java knowledge is as follows:

 1. Java language is a simple, object-oriented, distributed, is safe, neutral architecture that is portable, is interpreted, it is a high performance, multi-threaded, dynamic .

  2. A brief history:

May 23, 1995, Java language was born;

In January 1996, the first JDK-JDK1.0 born;

In April 1996, 10 major operating system vendors declare JAVA technology will be embedded in their products;

1996年9月,约8.3万个网页应用了JAVA技术来制作;

1997年2月18日,JDK1.1发布;

1997年4月2日,JavaOne会议召开,参与者逾一万人,创当时全球同类会议规模之纪录;

1997年9月,JavaDeveloperConnection社区成员超过十万;

1998年2月,JDK1.1被下载超过2,000,000次;

1998年12月8日,JAVA2企业平台J2EE发布;

1999年6月,SUN公司发布Java的三个版本:标准版(JavaSE,以前是J2SE)、企业版(JavaEE以前是J2EE)和微型版(JavaME,以前是J2ME);

2000年5月8日,JDK1.3发布;

2000年5月29日,JDK1.4发布;

2001年6月5日,NOKIA宣布,到2003年将出售1亿部支持Java的手机;

2001年9月24日,J2EE1.3发布;

2002年2月26日,J2SE1.4发布,自此Java的计算能力有了大幅提升;

2004年9月30日18:00PM,J2SE1.5发布,成为Java语言发展史上的又一里程碑。为了表示该版本的重要性,J2SE1.5更名为Java SE 5.0;

2005年6月,JavaOne大会召开,SUN公司公开Java SE 6。此时,Java的各种版本已经更名,以取消其中的数字"2":J2EE更名为Java EE,J2SE更名为Java SE,J2ME更名为Java ME;

2006年12月,SUN公司发布JRE6.0;

2009年04月20日,甲骨文74亿美元收购Sun。取得java的版权;

2010年11月,由于甲骨文对于Java社区的不友善,因此Apache扬言将退出JCP[4];

2011年7月28日,甲骨文发布java7.0的正式版。

第二章主要是Java程序设计环境的配置和使用:

       安装Java开发工具包(下载安装JDK)---使用命令行工具---使用集成开发环境---运行图形化应用程序---构建并运行applet。

       源程序文件的扩展名是.java 。

       源程序名一定为MyJavaApplication.java

第三部分:实验部分

     1. 实验名称:实验一 Java程序设计环境

     2.  实验目的:

  (1)掌握JDK的安装与配置;

  (2)掌握使用JDK开发Java程序的基本命令及步骤;

  (3)熟练运用Elipse集成开发环境开发java程序的基本步骤

  (4)掌握Java程序的基本语法。

3. 实验步骤与内容:

a.通过助教在班级讨论群里发的JDK相关链接下载JDK,并安装;

b.下载完成后可以在电脑目录中找到

 

 c.安装完成后需要在电脑属性中修改环境变量,右键此电脑——计算机——属性——高级系统设置就会看到环境变量;

 d.点击图中的环境变量,然后开始环境变量的配置;

 e.在弹出的【环境变量】中的【系统变量】,找到path;

 h.然后点击path,出现有编辑系统变量,里面有变量名和变量值;

 

i.验证是否安装配置完成,win+R出现如下界面:

 

 点击确定后会出现一个黑框,在这黑框里输入java,按回车键,出现一大串文字,再输入javac,出现一大堆文字,说明java安装配置成功。

 

 

实验2 下载教材示例程序包

1.在java讨论群里找到老师发的corejava.zip这个文件,点击下载

2.下载完成后进行解压,将其解压到E盘,以后需要了就去E盘里找。

 

 

实验3 命令行编译运行Welcome.java程序

a.首先打开java的运行环境,然后输入E:按回车键;

b.然后输入Javac Welcome.java,会发现此时E盘的文件里,即Welcome.java上面出现了Welcome.class的文件;

c.再输入Java Welcome,按回车键,其就运行出Welcome.java。

 

 

 实验4 用JDK命令行开发HelloWorld.java

 代码如下:

public class HelloWorld
 {
 public static void main(String args[])
 {
  System.out.println("HelloWorld!");
 }
   

  运行结果如下:

 

 

 

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

1.在班级群里面找到助教发的eclipse-inst-win64.exe,点击下载,下载后出现以下页面:

 

 2.然后选择第一个下载 ;

 3.在底下的两个勾后点INSETALL,再然后点LAUNCH,打开eclipse,出现了Welcome,则下载安装成功。

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

1.设置工作空间

 

创建项目

 

 

 程序如下:

package project1;

public class part1 {

	public static void main(String[] args) 
	{
		int x,y;
		for(x=1;x<=9;x++)
		{
			for(y=1;y<=x;y++)
			{
                System.out.printf(y+"*"+x+"="+x*y+"\t");
			}
			System.out.println();
		}
	}

}

  运行结果如下:

 

 第四部分 实验总结

         通过第一周的学习我掌握了JDK的下载与安装,学会了运用Elipse集成开发环境开发java程序的基本步骤,学会了Java的基本语法的运用,

通过网上学习,和书籍阅读,结合学习的内容设计并运行九九乘法表。本周的学习虽然只是基本工作但也是收获满满,也激发了我对Java语言

的兴趣,从而使我有信心能够学好这门课程。

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/nwnucyz/p/11444460.html