下面的Java代码会不会报错
输出是什么
import java.util.HashMap;
import java.util.Map;
public class Test {
public static void main(String[] args) {
Map map1 = new HashMap();
map1.put("key", new Integer(100));
Map<String, String> map2 = map1;
Integer value = Integer.valueOf(((Object)map2.get("key")).toString());
System.out.println(value);
}
}