Is is possible to get the id
from a MySQL table and "save" it into a variable on JDBC
?
In my program, I have a JTextfield
in which the user gives a ticket which will be stored on a MySQL DB. Everytime he gives a ticket, I want to get the id from my db where the ticket was inserted and not print in on teminal, but resolve it into a variable and use it on other classes also. I need it for other classes.
Is is possible?