how do i insert more than one row to my table

hello there, This is the code snippet iv written but the problem is its not inserting all the items in the String object , its inserting only the first value i.e l[0] and kp[0]. What corrections should i make to insert all the elements of the String object please let me know the corrections. Regards varsha void insertResults(String l[],String kp[],String tName)throws Exception { Connect(); String cmd="insert into "+tName+" values(?,?)"; PreparedStatement pst=null; pst=con.prepareStatement(cmd); for(int i=0;i<kp.length;i++) {