如何将整数转换为布尔值?因为我需要计算if语句中的3周数据,但我遇到此错误。请告知您计算3周数据if语句
for (int i = 0; i < ShipmentForecast.size(); i++){
CalendarUtils.AddDaysToDate(getDate(ShipmentForecast.get(i).dateBucket), 21)),
if (start == false){
if (ShipmentForecast.get(i).dateBucket.compareTo(startDateCal) >= 0){
}
if (ShipmentForecast.size == 40){
}
DateTime date = DateTime.parse(
ShipmentForecast.get(i).dateBucket,
DateTimeFormat.forPattern(SCPMFormatConstants.DATE_MCV))
.withTimeAtStartOfDay();
if ((date.equals(currentWeekStart)) || (date.isAfter(currentWeekStart))) {
start = true;
}
}
什么是你想转换谢谢?你有尝试过吗? – Zizouz212 2015-03-31 02:53:59