for (int i = 1; i < days; i++) {
Date repeatDate = new Date(mYear, mMonth, mDay+i, 0, 0, 0);
repeatDateMap.put(i, repeatDate);
Log.e(TAG, "i="+i);
}
但是写成这样就行:
Date repeatDate = new Date(mYear, mMonth, mDay+1, 0, 0, 0);
repeatDateMap.put(1, repeatDate);
Log.e(TAG, "i=1");是不是不能循环赋值啊??
Date repeatDate = new Date(mYear, mMonth, mDay+i, 0, 0, 0);
repeatDateMap.put(i, repeatDate);
Log.e(TAG, "i="+i);
}
但是写成这样就行:
Date repeatDate = new Date(mYear, mMonth, mDay+1, 0, 0, 0);
repeatDateMap.put(1, repeatDate);
Log.e(TAG, "i=1");是不是不能循环赋值啊??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货