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

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]没有任何内容时,为什么哪条输出语句都不执行呢?


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