int y,m,d,ym,ymd,ymdc; 
Integer x=150;
int z=200;
ymdc=Integer.valueOf(""+z+""+x+"");
System.out.println("########"+ymdc);
//================================为什么上边这么写都能转化,下面这样写就不行呢?
报java.lang.NumberFormatException: For input string: "20090508126"异常
 
SearchBiz seb=new SearchBizImpl();
Calendar cal=Calendar.getInstance(); 
y=cal.get(Calendar.YEAR); 
m=cal.get(Calendar.MONTH)+1; 
d=cal.get(Calendar.DATE); 
Spending s=seb.searchMaxId();
int maxId=s.getMaxId()+1;
if(m<10){ym=Integer.valueOf(y+"0"+m);}else{ym=Integer.valueOf(""+y+m);}
if(d<10){ymd=Integer.valueOf(ym+"0"+d);}else{ymd=Integer.valueOf(""+ym+d);}
ymdc=Integer.valueOf(""+ymd+""+maxId+"");
System.out.println("########"+ymdc);