当前位置: 代码迷 >> Java Web开发 >> jxl读取Excel的有关问题
  详细解决方案

jxl读取Excel的有关问题

热度:31   发布时间:2016-04-17 16:38:31.0
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]没有任何内容时,为什么哪条输出语句都不执行呢?


------解决方案--------------------
不是不执行是不是已经抛出异常了,你这行到底有多少列
  相关解决方案