code: public static int getYearDay(Date date) {
          Calendar calendar = Calendar.getInstance();
          calendar.setTime(date);
          return calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
      }
docs: 获取指定年份的天数
  
  @param date 指定年份
  @return 指定年份对应的天数