RT
之前想坐下判读,为空时填个“无”,结果还是报错,越界什么的。
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 4以下几行代码都试过了,都不行。
String x = (cell[3].getContents()==null||cell[3].getContents().trim().equalsIgnoreCase("")?"无":cell[3].getContents().trim());
或者
String y = (cell[4].getContents()==null||"".equals(cell[4].getContents().trim())?"无":cell[4].getContents().trim());
或者
String y = cell[4].getContents().trim();请问有解决的办法吗?谁能帮助一下,谢谢。