Java Hashtable Create newHashtable(int initialCapacity)

Here you can find the source of newHashtable(int initialCapacity)

Description

new Hashtable

License

Open Source License

Declaration

public static <K, V> Hashtable<K, V> newHashtable(int initialCapacity) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {

    public static <K, V> Hashtable<K, V> newHashtable() {
        return new Hashtable<K, V>();
    }//from w  ww .j a  va  2s.co  m

    public static <K, V> Hashtable<K, V> newHashtable(int initialCapacity) {
        return new Hashtable<K, V>(initialCapacity);
    }

    public static <K, V> Hashtable<K, V> newHashtable(Map<? extends K, ? extends V> m) {
        return new Hashtable<K, V>(m);
    }
}

Related

  1. createHashtable(int size)
  2. getArray(Hashtable hash)
  3. getGUIDS(Hashtable table)
  4. getKeyByEntry(Hashtable t, Object value)
  5. newHashTable(int initialCapacity, float loadFactor)