java获取当前年份
解决方法:
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
int year = calendar.get(Calendar.YEAR);//获取当前年份
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
java获取当前年份
解决方法:
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
int year = calendar.get(Calendar.YEAR);//获取当前年份
有建议,请留言!