1.Double类型保留两位小数
DecimalFormat df = new DecimalFormat("######0.00");
2.遍历map(带Key值)
for (Map.Entry<Integer, Integer> entry : map.entrySet()) {
System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
}
3.日期格式化
SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");