日期:2014-05-18  浏览次数:20795 次

这段语句为什会报错?
int   leim   =   java.lang.Integer.parseInt(lei);  
                  switch(leim){  
case   1:   out.print( " <table     border= '1 '   align= 'center '   bordercolor= '#7188e0 '> <tr   bgcolor= 'd1d1ff '> <Th   width= '100 '> 用户名 </th> <th   width= '180 '> 卡号 </th> <th   width= '112 '> 照片 </th> <th   width= '112 '> 卖场 </th> </tr> ");break;

------解决方案--------------------
报什么样的错误????
int leim = java.lang.Integer.parseInt(lei);
这里有try catch吗???
------解决方案--------------------
int leim = java.lang.Integer.parseInt(lei);
switch(leim){
case 1: out.print( " <table border= '1 ' align= 'center ' bordercolor= '#7188e0 '> <tr bgcolor= 'd1d1ff '> <Th width= '100 '> 用户名 </th> <th width= '180 '> 卡号 </th> <th width= '112 '> 照片 </th> <th width= '112 '> 卖场 </th> </tr> ");break;
case 2: out.print( " <table border= '1 ' align= 'center ' bordercolor= '#7188e0 '> <tr bgcolor= 'd1d1ff '> <Th width= '100 '> 用户名 </th> <th width= '180 '> 卡号 </th> <th width= '112 '> 照片 </th> <th width= '112 '> 卖场 </th> </tr> ");break;
}
这样的么???