bhavyawahie/jdbc ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Java command line app for managing student records with JDBC and MySQL.

I want to be able to connect to a database, create the student table if it does not already exist, and then use a text menu to add, view, update, and delete students. Please make it feel easy to use in the terminal, with clear prompts and messages for success or failure. Use prepared statements for the database queries so it is safer and not vulnerable to SQL injection.

Keep the project clean and beginner friendly, since this is for practicing JDBC concepts. If it makes sense, read the database URL, username, and password from a local environment file or similar config instead of hardcoding them. Also make sure the app keeps running until the user chooses to exit, and that all database changes are saved properly. If you need to look up current JDBC or MySQL setup details online, go ahead and do that.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab