首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

jxl读取Excel的有关问题

2011-12-26 
jxl读取Excel的问题Cell[]cesh.getRow(10)Stringssce[12].getContents()System.out.println( ss: +s

jxl读取Excel的问题
Cell[]   ce=   sh.getRow(10);
        String   ss   =   ce[12].getContents();
        System.out.println( "ss: "   +   ss);

if(ce[12].getContents()   ==   null   ||   ce[12].getContents().equals( " "))
    System.out.print( "yes ");
else
    System.out.print( "no ");

当ce[12]没有任何内容时,为什么哪条输出语句都不执行呢?


[解决办法]
不是不执行是不是已经抛出异常了,你这行到底有多少列

热点排行