62,620
社区成员
发帖
与我相关
我的任务
分享while ((str = br.readLine()) != null) {
str=str.replaceAll("\\|\\s*(?=$)|\\s*","");
String[] names = str.split("\\|");
if(names.length==5){
String sqlinsert = "insert into readfile values ('"+names[0]+"','"+names[1]+"','"+names[2]+"','"+names[3]+"','"+names[4]+"')";
}else{
//做相应处理;
}
}