你怎么能实例化一个Bimap
谷歌集合?
我读过问题Java: Instantiate Google Collection's HashBiMap
我的代码示例
import com.google.common.collect.BiMap;
public class UserSettings {
private Map<String, Integer> wordToWordID;
UserSettings() {
this.wordToWordID = new BiMap<String. Integer>();
我明白了cannot instantiate the type BiMap<String, Integer>
。