how to update a record in mysql through java
<p>I am currently trying to code a java program for a school project that has a mysql database of sportsclub members. I want to use the id of the members in order to change the number of classes that someone skipped. However my Java code always fails to run and outputs the exception message. My database is called demo1 and the field im trying to update is Consecutiveskips. The id field is called (id)</p>

<p><a href="https://i.stack.imgur.com/LActm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LActm.png" alt="enter image description here"></a></p>