如何将用户输入值与HashMap中的硬编码值进行比较?

时间:2017-08-31 09:45:33

标签: hashmap hashset linkedhashmap

public static HashMap<String,Person> info = new HashMap<String,Person>();
public static HashMap<String,Person> input = new HashMap<String,Person>();

public void Data(){ 
    info.put("A1",new Person("A01","XYZ","Baseball",21,"USA"));
    info.put("A2",new Person("A02","ABC","Badminton",29,"AUS"));
    info.put("A3",new Person("A03","PQR","LawnTennis",25,"UK"));
    info.put("A4",new Person("A04","CDE","Football",28,"FRA"));      
}   

0 个答案:

没有答案