没有问题.请看下面的例子://MapDemo.java
public class MapDemo {
    
    public static void main(String args[]) {
        java.util.Map map = new java.util.HashMap();
        
        // push to map
        for (int i=0; i<10; i++) {
            Character c = new Character((char)('0' + i));
            map.put(c, String.valueOf(i));
        }
        
        // find in map
        for (int i=0; i<10; i++) {
            Character c = new Character((char)('0' + i));
            Object o = map.get(c);
            if (o == null)
                System.out.println("not found the value of " + c + ".");
            else {
                System.out.println("key:" + c + " value:" + o);
            }
        }
    }
}