im trying to insert comma separated string into a table

here is my Soultion: 

```
String str = "83.320869,17.735924,83.322868,17.737820,83.323715,17.738564";
List<String> list = Arrays.asList(str.split(",")); // split-ing the string`
ArrayList<Double> ala = new ArrayList<Double>();
ArrayList<Double> alo = new ArrayList<Double>();
for (String i : list) {

            double d = Double.parseDouble(i);

            if (d > 82 & d < 84) {

                ala.add(d);

            } else {
                alo.add(d);
            }

        }
        for(int in =0 ; in<=2; in++){
            String sql2 = "insert into routes values(" + ala.get(in) + "," + alo.get(in)+ ")";
            stmt.executeUpdate(sql2);
        }

```

finally got the solution :)