Properties properties = new Properties(); Map<String, String> map = new HashMap<String, String>(properties);// why wrong?
java.util.Properties是Map的一个实现,而HashMap构造函数接收一个Map类型的param.但为什么必须明确转换?
java
java ×1