I'm writing a program for a company to prove to them to give me a job. its a basic java console app with two layers (a presentation layer and a logic layer) it uses the crud functions with a my sql database.
its a video game storage program
on my delete game method i need it to tell the user, when they enter the wrong id number, that it is the wrong number and they need to try again.
here is the code for the presentation layer
here is my logic layer
they way its set up now it deletes just fine. if i enter 2(which is goldenye 007 in my database) it would delete golden eye and tell me game deleted. but if i type in...oh lets say 66 (which is nothing in my data base) it would still tell me game deleted
thank you in advance for any help.
PS- first post on here so if i did something wrong i apologize and please tell me what i need to do for next time
Not sure actually how I would go about that. I see in my final project I didn't have it check the user i.d. and I got called out on it. Luckily I passed. I can't find anything on the web when i google it cause there are literately no articles, forums, etc. about using multiple layers, crud functions, and console apps (at least they aren't all in the same article).
and to re-track to the previous statement for the camel case( in your first post) The formatting standards at this company require the methods to have the first and following to be upper case.