-3
Fecha是我的课程。我可以Caledar转换为出生日期用这种方法:将Fecha转换成日历
public Fecha(Calendar fecha) {
this.day = fecha.get(Calendar.DATE);
this.month = fecha.get(Calendar.MONTH) + 1;
this.year = fecha.get(Calendar.YEAR);
}
但是我不能转换出生日期日历:
public Calendar fechaToCalendar(Fecha f) {
Calendar c = null;
return c;
}
我该怎么办?
为什么不呢?出了什么问题?请详细说明。 – SubliemeSiem
通过编写正确的代码。这里是[引用'java.util.Calendar'](https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html)。 – MikeCAT
我不知道如何将这种方法转换成日历。 –