1.获取当前年份

Calendar cale = Calendar.getInstance();
int year = cale.get(Calendar.YEAR);
System.out.println(year);