import java.util.Hashtable;Exécution:
public class Main {
public static void main(String[] args) {
Hashtable<String, String> ht = new Hashtable<String, String>();
ht.put("1", "un");
ht.put("2", "deux");
ht.put("3", "trois");
boolean b = ht.contains("trois");
System.out.println("La valeur trois existe dans Hashtable ? : " + b);
}
}
La valeur trois existe dans Hashtable ? :true
Please disable your ad blocker and refresh the window to use this website.