mirror of
https://gitee.com/gaohongy/Java-Book.git
synced 2026-07-16 10:03:49 +00:00
整理重点
This commit is contained in:
+6
-2
@@ -208,7 +208,7 @@ String是immutable,表示其值是不能更改的;一旦给一个String类
|
||||
|
||||
例如:
|
||||
|
||||
```
|
||||
``` java
|
||||
import java.util.Scanner;
|
||||
|
||||
public class PalindromeIgnoreNonAlphanumeric {
|
||||
@@ -262,4 +262,8 @@ public class PalindromeIgnoreNonAlphanumeric {
|
||||
}
|
||||
```
|
||||
|
||||
##
|
||||
## 4. 本章重点
|
||||
|
||||
1. 掌握原始类型对应的封装类型;
|
||||
2. 掌握数值封装类型和原始类型,字符串的相互转换;
|
||||
3. 了解StringBuilder 的使用
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
|
||||
> Suppose you will define classes to model circles, rectangles, and triangles. These classes have many common features. What is the best way to design these classes so to avoid redundancy? The answer is to use inheritance.
|
||||
|
||||
### 1.1. 如何降低描述荣誉
|
||||
### 1.1. 如何降低描述冗余
|
||||
|
||||
如何降低代码的冗余?例如在C语言中,通过什么方式降低代码的冗余。
|
||||
|
||||
@@ -367,8 +367,6 @@ main函数开起来比较奇怪,为什么在Faculty内中,又使用new 方
|
||||
activate Faculty()
|
||||
Note over Faculty():4
|
||||
deactivate Faculty()
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
@@ -973,4 +971,6 @@ ArrayList<String> cityList = new ArrayList();
|
||||
> 修饰符用于类和类成员(数据和方法),但final修饰符也可以用于方法中的局部变量。final用于一个局部变量,这个变量就是方法内部的常量。
|
||||
|
||||
|
||||
## 9. 本章重点
|
||||
|
||||
除了特别标注,都需要掌握。
|
||||
|
||||
+4
-1
@@ -546,7 +546,7 @@ edible.howToEat();
|
||||
|
||||
## 3. 接口的使用
|
||||
|
||||
### 3.1. Comparable接口
|
||||
### 3.1. Comparable接口(理解)
|
||||
|
||||
首先来回忆一下在数组那一章学习到的排序函数:
|
||||
|
||||
@@ -637,3 +637,6 @@ public class SortRectangles {
|
||||
1. 实线箭头表示类的扩展;虚线街头表示接口的扩展方向;
|
||||
2. 所有类都有一个共同的超类 Object,但是接口没有共同的**超接口**。
|
||||
|
||||
## 本章重点
|
||||
|
||||
除特别标注,其他都是重点,需要掌握。
|
||||
Reference in New Issue
Block a user