Connection con=DriverManager.getConnection("jdbc:odbc:penalty_test","",""); Statement stmt=con.createStatement(); stmt.executeUpdate("insert into case2(minimum,FES,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16" + ",x17,x18,x19,x20) values("+min+","+FES+"," + ""+attributeOfFunction1[0]+","+attributeOfFunction1[1]+","+attributeOfFunction1[2]+"" + ","+attributeOfFunction1[3]+","+attributeOfFunction1[4]+","+attributeOfFunction1[5]+"" + ","+attributeOfFunction1[6]+","+attributeOfFunction1[7]+"" + ","+attributeOfFunction1[8]+","+attributeOfFunction1[9]+","+attributeOfFunction1[10]+"" + ","+attributeOfFunction1[11]+","+attributeOfFunction1[12]+","+attributeOfFunction1[13]+"" + ","+attributeOfFunction1[14]+","+attributeOfFunction1[15]+","+attributeOfFunction1[16]+"" + ","+attributeOfFunction1[17]+"" + ","+attributeOfFunction1[18]+","+attributeOfFunction1[19]+","+attributeOfFunction1[20]+")"); con.close();