Skip to content

Commit 89306ad

Browse files
committed
Merge branch 'master' of https://github.com/Snailclimb/JavaGuide
2 parents 7826c64 + edf036f commit 89306ad

File tree

3 files changed

+228
-206
lines changed

3 files changed

+228
-206
lines changed

docs/java/Java基础知识.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Java 中的注释有三种:
219219
>
220220
> ```java
221221
> // check to see if the employee is eligible for full benefits
222-
> if ((employee.falgs & HOURLY_FLAG) && (employee.age > 65))
222+
> if ((employee.flags & HOURLY_FLAG) && (employee.age > 65))
223223
> ```
224224
>
225225
> 应替换为

docs/java/collection/HashMap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ public class HashMapDemo {
512512

513513
}
514514
/**
515-
* 如果既要遍历key又要value,那么建议这种方式,应为如果先获取keySet然后再执行map.get(key),map内部会执行两次遍历。
515+
* 如果既要遍历key又要value,那么建议这种方式,因为如果先获取keySet然后再执行map.get(key),map内部会执行两次遍历。
516516
* 一次是在获取keySet的时候,一次是在遍历所有key的时候。
517517
*/
518518
// 当我调用put(key,value)方法的时候,首先会把key和value封装到

0 commit comments

Comments
 (0)