I want to Update a database and want to put the Numbers like this: 1.384,38
Here is my Code to Update from the Textfield but it doesn't work
try {
String query="Update Sina Set Iuuiu = ? where Formate = ? " ;
PreparedStatement pst=connection.prepareStatement(query);
pst.setDouble(1, Double.parseDouble(textField_3.getText()));
pst.setString(2, "Zuschnittentnahme Gegensauger");
pst.executeUpdate();
} catch (Exception e1) {
e1.printStackTrace();
}
This is my Code. Now I have to type it like this: 1344.43 but I want to type it like this: 1.344,43