String s1;//s1="2009-07-31"
把s1装换成整形。
int s=Integer.parseInt(s1);
然后对s截取月份String ss=n.substring(5,6);
这么写有错误,无法引用int,那该怎么写。