Java-source: Vider un HashTable

Author:

Java-source: Vider un HashTable
Download

/***** Code de MesExemples.com *******/
import java.util.Hashtable;
import java.util.Enumeration;
 
 class ExempleClearHashtable
{
 
public static void main(String[] args) {
 
//create Hashtable object
Hashtable hashTab = new Hashtable();
 
//Ajout des éléments dans HashMap
hashTab.put("1","Allo");
hashTab.put("2","Hello");
hashTab.put("3","Hola");
 
 
// vider le HashTable
hashTab.clear();
}
}

Cet article Java-source: Vider un HashTable est apparu en premier sur .