部分代码如下:
InputStream is = new FileInputStream(path); //excel地址
jxl.Workbook little_potato = Workbook.getWorkbook(is);
jxl.Sheet st = little_potato.getSheet(0);//读取第一张工作表
int rsRows = st.getRows(); //行数
for (int i = 1; i < rsRows; i++) {
Cell cell3 = st.getCell(3, i);//第四列 }
char[] ch3 = cell3.getContents().toCharArray(); //传入数组
现在想删除ch3种相同的元素(第四列中有相同的内容)
各位前辈 char[] ch3这样的定义 能不能删除其中某个元素
我现在应该如何修改
谢谢
InputStream is = new FileInputStream(path); //excel地址
jxl.Workbook little_potato = Workbook.getWorkbook(is);
jxl.Sheet st = little_potato.getSheet(0);//读取第一张工作表
int rsRows = st.getRows(); //行数
for (int i = 1; i < rsRows; i++) {
Cell cell3 = st.getCell(3, i);//第四列 }
char[] ch3 = cell3.getContents().toCharArray(); //传入数组
现在想删除ch3种相同的元素(第四列中有相同的内容)
各位前辈 char[] ch3这样的定义 能不能删除其中某个元素
我现在应该如何修改
谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货