Hello,
Even I have a similar kind of a problem in my code, I am very new to java and I have tried something , just have a look at it
Code:
Public class Flux_1 {
Public static void hand(Statement stmt, String file, String[] v) {
String v = nom_tbl[2];
String v = sep_chp[3];
String v = titre_col[4];
String v = def_tbl[6];
String[] nm = v[7].split("[|]");
Integer nb_chp = 0;
String s = "";
String vue = "";
StringBuffer s0 = new StringBuffer();
/ / System.out.println (v [8]);
InputStream ips =new FileInputStream(file);
InputStreamReader PRRO =new InputStreamReader(ips);
BufferedReader br =new BufferedReader(PRRO);
String ln;
/ / read ln by ln
while(v.length<nb_chp)
{ln + = br.readLine();
v = ln.split("["+ + sep_chp"]", 0);}
/ / extraction and construction of the insertion rqte
for(int i =0; i <nm.length; i + +)
{vue = v[Integer.parseInt(nm[i], 10)-1];
/ / System.out.println (nm [i] + "-" + vue);
if(worth.equals("")| | vue.equals(" ")){vue = "NULL";}else{vue = "'"+ + vue"' ,";}
try{stmt.execute(s);}catch(Final SQLException e){}
System.out.System.out.println("Sql"+ s);
}
br.close();
}
catch (Exception e) {System.out.System.out.println("popo"+ e.function toString() {
[native code]
}());}
}
}
Bookmarks