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 841325b commit 4973cb4Copy full SHA for 4973cb4
src/Hashing1.java
@@ -17,12 +17,15 @@ public static void main(String[] args) {
17
//to print all the elements of the set
18
System.out.println(set);
19
20
- //to check whether set contain the target element or not - this will return the boolean value(true/false)
+ //contains method to check whether set contain the target element or not - this will return the boolean value(true/false)
21
System.out.println(set.contains(5));
22
System.out.println(set.contains(6));
23
24
- //to remove any element from set
+ //remove method to remove any element from set
25
set.remove(4);
26
27
+
28
+ //size method to check the size of the set
29
+ System.out.println(set.size());
30
}
31
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments