<input name="year" type="text" id="year" maxlength="4"/>
<select name="month">
String m;
String y;
int num1,num2=0;
y=request.getParameter("year");
num1= Integer.parseInt(y);
m=request.getParameter("month");
num2= Integer.parseInt(m);
为什么老是出现num1数据类型不匹配