Wanted to see if anyone had an idea on why my code will sometimes find what I need and sometimes it won't.
I have an Array name accounts, contains three fields: name, StudentID, and balance. I'm asking the user for the StudentID they'd like to delete, then I'm validating it before sending it to the deleteStudentID method. The problem is that sometimes this works just fine. Other times I type in a valid ID and I get the invalid entry message. If I sit and type the studentID over and over, it will eventually find it, and move to the deleteStudentID method.
Here's the code I'm using to validate the user's input.