import java.util.Hashtable;Runtime:
public class Main {
public static void main(String[] args) {
ハッシュテーブル<文字列、文字列>ht = 新しいハッシュテーブル<文字列、文字列>();
ht.put("1", "one");
ht.put("2", "two");
ht.put("3", "three");
boolean b = ht.contains("three");
System.out.println("値 3 はハッシュテーブルに存在しますか?: " + b);
}
}
値3はHashtableに存在しますか?:true
Please disable your ad blocker and refresh the window to use this website.