java随笔

/**
* 设置map默认值为0值
*
* @param map
* 要设置的map
* @param num
* 设置0的个数
*/
private void setDefaultHourReport(Map<String, Object> map, int num) {
for (int i = 0; i < num; i++) {
String dd = String.format("%02d", i);
map.put(dd, ZERO);
}
}

posted on 2018-05-14 09:39  cxhfuujust  阅读(91)  评论(0编辑  收藏  举报

导航