I changed it back to the way I had it in post #3. I made the while statement separate and searched through the array, and it worked! :) Thanks so much for your help!!
Type: Posts; User: javaNewbie2014
I changed it back to the way I had it in post #3. I made the while statement separate and searched through the array, and it worked! :) Thanks so much for your help!!
Thanks for the feedback. I tried a couple different ways like you mentioned, but I'm wondering if I am not putting the information in the correct place.
When I used just the break statement, it...
It would help if I checked that I posted the correct code that shows the issue! :)
Once an invalid ID # is entered, I can't figure out how to get it to switch to validID = true, and move on with...
I am working on allowing a user to enter an ID # using JOptionPane. If the ID is valid, then it will display the ID#, student name, and GPA. If it is not valid, then the window should pop up again...
I am working on allowing a user to enter an ID # using JOptionPane. If the ID is valid, then it will display the ID#, student name, and GPA. If it is not valid, then the window should pop up again...
My name is Samantha (Sam for short!) and I would call myself a newbie. I went to school for Accounting and got my bachelor's and master's degree both in accounting. I did minor in computer science,...