Java-source: Vider un HashTable

Author:

Java-source: Vider un HashTable
{filelink=453}

/***** 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();
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *