This question shows research effort; it is useful and clear
-3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
所以假设我有这个代码:
//someParameterizedDate = New Years Eve 2011
Calendar cal = new GregorianCalendar();
cal.setTime(someParameterizedDate);
cal.roll(Calendar.DAY_OF_YEAR, 1);