Skip to content

Commit c698365

Browse files
authored
한글화
1 parent e73e8a8 commit c698365

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/effectivejava/chapter4/item18/InstrumentedHashSet.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package effectivejava.chapter4.item18;
22
import java.util.*;
33

4-
// Broken - Inappropriate use of inheritance! (Page 87)
4+
// 코드 18-1 잘못된 예 - 상속을 잘못 사용했다! (114쪽)
55
public class InstrumentedHashSet<E> extends HashSet<E> {
6-
// The number of attempted element insertions
6+
// 추가된 원소의 수
77
private int addCount = 0;
88

99
public InstrumentedHashSet() {
@@ -29,7 +29,7 @@ public int getAddCount() {
2929

3030
public static void main(String[] args) {
3131
InstrumentedHashSet<String> s = new InstrumentedHashSet<>();
32-
s.addAll(List.of("Snap", "Crackle", "Pop"));
32+
s.addAll(List.of("틱", "탁탁", "펑"));
3333
System.out.println(s.getAddCount());
3434
}
3535
}

0 commit comments

Comments
 (0)