We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25da34a commit 34ff1e6Copy full SHA for 34ff1e6
HashSetDemo24.java
@@ -11,10 +11,13 @@ public static void main(String[] args) {
11
set.add("b");
12
13
set.hashCode();
14
+ //this is from : java.util.AbstractSet.hashCode()
15
16
System.out.println(set.hashCode());
17
18
set.forEach(i -> System.out.println(i.hashCode()) );
19
+ //Note : i.hashCode() is of Wrapper Class String's Hash Code and not of Abstract Set.
20
+ //i.e. : java.lang.String.hashCode()
21
}
22
23
0 commit comments