code: public static String getWeekAsChinese(Date date) throws Exception {
          String result;
          switch (getWeek(date)) {
              case 1:
                  result = "日";
                  break;
              case 2:
                  result = "一";
                  break;
              case 3:
                  result = "二";
                  break;
              case 4:
                  result = "三";
                  break;
              case 5:
                  result = "四";
                  break;
              case 6:
                  result = "五";
                  break;
              case 7:
                  result = "六";
                  break;
              default:
                  throw new Exception("something error, get week failed");
          }
          return "星期" + result;
      }
docs: 计算日期为星期几
  
  @param date 日期
  
  @return 格式为“星期？”的字符串
  
  @throws Exception 异常