import java.util.Hashtable;
الفئة العامة الرئيسية {
الفراغ العام الثابت الرئيسي (سلسلة [] s) {
جدول التجزئة = جديد Hashtable ();
table.put ("key1" ، "v1") ؛
table.put ("key2" ، "v2") ؛
table.put ("key3" ، "v3") ؛
if(table.containsKey("key2")))
System.out.println("key2 موجود في Hashtable");
else
System.out.println(table.containsKey("key2 غير موجود في Hashtable");
}
}
< / pre>وقت التشغيل:
< pre class = "prettyprint lang-java" > key2 موجود في Hashtable< / pre>
Please disable your ad blocker and refresh the window to use this website.