20172333 2016-2017-2 "Java Program Design" 3rd week Study summary Textbook study summary
The 1.String class, the random class, the math class, the NumberFormat class and the DecimalFormat class, the enumeration type, and the wrapper class.
Problems in code debugging and the resolution process
- Question 1: The first three numbers appear in the process of writing about pp3.3.
- Problem 1 Solution: tinkering for a while, and finally to ask Zhangxu seniors, is really a big guy, a look at the problem, just add a "perfect solution to the problem, and for me to explain in detail the cause of my problems," + "in the application, As long as there is a string that will implement the addition of the string instead of just the number, and the previous seniors get the "" so that the "+" number to implement the string addition.
Problems in teaching materials learning and the solving process
- Question 1: Understanding of "package"
- Problem 1 Solution: "Package" and "class" at the beginning of the time I was completely confused, that "class" contains "package". It turns out that the opposite is true, for example, that the string class and the system class belong to the Java.lang package. A package is, on the whole, a collection of classes that contain a subset of the functions that are turned on.
- Question 2: There are classes on using the package
- Problem Solving: The book is not to say that in the use of the class in a package to advance the import, I think of a thing, with two classes can be used to facilitate input, if I use a class also use a to replace is not very convenient. As a result, a try can be really.
Code Hosting
Last week's summary of the wrong quiz
1.What value would z have if we execute the following assignment statement? float z = 5/10?
Correction: A floating-point number can contain the result of an integer, except that it adds a decimal point instead of a running error.
2.If x is a int and y was a float, all of the following is legal except which assignment statement?
Correct: It's just a simple mistake.
3.Which of the following is true regarding the MoD operator,%? (for the remainder operator%, which of the following is correct?) )
Correct: Prior to the understanding of the redundancy operator is only known to derive the value.
4.What is output with the statement System.out.println (X+Y); If x and y are int values where x=10 and y=5? (if x and Y are numeric values of type int, x=10,y=5, then statement System.out.println (X+Y); What is the output?) )
Correction: no understanding of +.
5.If you want to store into the String name the value "George Bush" and you would do which statement? (If you want to store the value of "George Bush" as a string type name, would you execute that statement?) )
Correction: There are too few types of practice.
6. A variable of type Boolean would store either a 0 or a 1. (Variables of type Boolean will be stored as 0 or 1)
Correct: is stored as true, false.
Learning progress Bar
|
lines of code (new/cumulative) |
Blog Volume (Add/accumulate) |
Learning Time (new/cumulative) |
Important Growth |
Goal |
5000 rows |
30 Articles |
400 hours |
|
First week |
125/125 |
2/2 |
20/20 |
|
Second week |
269/394 |
2/4 |
Unknown/38 |
|
Third week |
477/920 |
|
20172333 2016-2017-2 "Java Programming" 3rd Week study Summary