Connection con = DBBean.getConnection();
  String type[] = request.getParameterValues("type");
  
  if (type != null) {
    for (int i = 0; i < type.length; i++) {
      String aa = type[i];
      try {
        Statement st = con.createStatement();
        String sql = "update Book set " + aa + "=" + aa + " +1 where ID=1 ";
        st.executeQuery(sql);
      }
      catch (Exception ex) {
        ex.getMessage();
      }
    }
  }其中type是复选框的类型
String aa = type[i];
这一句是最难理解的
有人能帮我解释一下吗