Hey bro I suggest u to use prepareStatement
String template = "INSERT INTO APP.PERSON VALUES (YOUR,TABLE,COLLUMN,NAME) values (?,?,?,?)";
PreparedStatement stmt = yourConnection.prepareStatement(template);
So if your want to set your ID as an integer, let java do it with
stmt.setInt(1, ID);
stmt.setString(2, user);
stmt.setString(3, fName);
stmt.executeUpdate();
I dont know how is your table structure but this is an example if you want to use int
use stmt.setInt(1, 3);
1--> position that u set up in string template
3--> maybe u want to hard coded the ID
here is my example pattern to use prepareStatement
String name = "shadrach"
Double price = "100.00"
int qty = 3;
String template = "INSERT INTO PRODUCT (NAME,PRICE,QTY) values (?,?,?)";
PreparedStatement stmt = connection.prepareStatement(template);
stmt.setString(1, name);
stmt.setDouble(2, price);
stmt.setInt(3, qty);
stmt.executeUpdate();