& Lab report a summary of the third week of learning

First, the test report
1. printout of all the "number of Narcissus", the so-called "number Narcissus" means a 3-digit number, which is equal to the digits of the cube and the number itself. For example, 153 is a "number daffodils."
(1) Code

(2) results

  2. 编写Java程序,求13-23+33-43+…+973-983+993-1003的值。

(1) Code

(2) results

  3. 编程求1!+2!+3!+…+20!。

(1) Code

(2) results

  4. 编写Java程序,计算8+88+888+…前10项之和。

(1) Code

(2) results

  5. 一个数如果恰好等于它的因子之和,这个数就称为完数。编写程序输出1000以内的所有完数。

(1) Code

(2) results

  6. 编写应用程序,输出满足1+2+3+…+n<8888的最大正整数。

(1) Code

(2) results

  7. 使用for循环打印下面的图(等腰三角形):

(1) Code

(2) results

Second, the summary
1. The first week began to realize what it was like the Java language, the learning environment and associated application architecture, and install jdk, also began to compile some simple procedures, such as Hello Java,
learned some of the file naming rules , the initial contact with the object class and two new concept.

2. Second, three weeks to further understand this language, find it and c language also has many differences, and there are many new things
(1) the difference between objects and classes
(2) constructor
(3) this the statement quoted
(4) the role of static is shared, static variables commonly used to

3. Experience
(1) is really just beginning to learn Java Zhang Fei needle-like, know what to do, I do not know how to compile, from where to start, completely ignorant force, is then slowly learn to learn to do a little bit
(2) remember to do a multiple-choice questions, find the results of the program, forget the equal sign before and after the data type should be consistent, there is a small number that is calculated not understand why only one integer, Christine
hi I have to myself this knowledge once again deepened the impression.
(3) the name of the method must be configured with the same name and class declarations can not have a return value
difference (4) print and of pintln

Guess you like

Origin www.cnblogs.com/shsy/p/11518922.html