Skip to content

Commit 79317af

Browse files
author
maskleo
authored
Update 01_Generics.md
1 parent 6c347be commit 79317af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch01/01_Generics.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
分配一个数组,并在该数组中存储一个指定其组件是类型是字符串。 相反,执行:
5656

5757
```java
58-
new ArrayList<String>()
58+
new ArrayList<String>()
5959
```
6060

6161
分配一个列表,但不在列表中存储任何元素类型的指定。在行话中,我们说 `Java` 会将数组元素类型作为数据类型,但并不是指定数组元素的类型元素类型(或其他
@@ -73,7 +73,7 @@
7373

7474
在Java中,不需要任何空格,可以这样写:
7575
```java
76-
List<List<String>>
76+
List<List<String>>
7777
```
7878

7979
如果您愿意,您可以使用额外的空间,但不是必需的。(在 `C++` 中,一个问题出现是因为 `>>` 没有空格表示右移运算符。`Java` 修复了问题在语法中的一个窍

0 commit comments

Comments
 (0)