我们如何在我们的代码中实现 Hashtable 的初始容量和负载因子
How can we implement initial capacity and load factor for Hashtable in our code
当我使用下面的代码时,它抛出错误
Hashtable htl = new Hashtable(int 50, float 0.90);
错误:标记“int”的语法错误,删除此标记
调用方法时不放置类型。
只需替换为
Hashtable htl=new Hashtable(50, 0.90);
当我使用下面的代码时,它抛出错误
Hashtable htl = new Hashtable(int 50, float 0.90);
错误:标记“int”的语法错误,删除此标记
调用方法时不放置类型。
只需替换为
Hashtable htl=new Hashtable(50, 0.90);