probeer het op deze manierVervang dit Statement st = con.createStatement();
met
String query ="select * from customerinformation where pin =?"
PreparedStatement st =con.prepareStatement("query");
st.setInt(1,PIN);
ResultSet resultSet = st.executeQuery();
Gebruik Statement nooit boven PreparedStatement
if (!resultSet.next() ) {
System.out.println("resultset does not data");
} else {
do {
System.out.println(rs.getString(1)+" "+
rs.getString(2)+" "+
rs.getString(3)+" "+
rs.getString(4));
} while (resultSet.next());
}