Delete from SQLite Database
<p>I have an SQLite database linked up to my Java project within Eclipse. I'm able to delete entries from the database when I give a hardcoded, specified ID such as '3'. I'm trying to alter the code in order to enable the user the manually pass any number and have it delete that entry. </p>

<pre><code>public static String deleteRecords(String NumberDelete){
    Connection dbConnection = null;
    Statement statement = null;
    try{
        dbConnection = getDBConnection();
        dbConnection.setAutoCommit(false);
        statement = dbConnection.createStatement();
        String sql = "DELETE from employees where ID='NumberDelete';";
        statement.executeUpdate(sql);
        dbConnection.commit();
        statement.close();
        dbConnection.close();
    } catch(Exception e) {
        System.err.println(e.getClass().getName() + ": " + e.getMessage());
        System.exit(0);
    }
    return NumberDelete;
}
</code></pre>