import java.util.Calendar;
import java.util.Date;
publicclass Main {
publicstaticvoid main(String[] args) {
getDate();
getMonthFromDate();
}
/**
* Get current system date.
*
* @return current system date.
* @deprecated This method will removed in the near future.
*/
@Deprecated
publicstatic Date getDate() {
returnnew Date();
}
publicstaticint getMonthFromDate() {
return Calendar.getInstance().get(Calendar.MONTH);
}
}