User Profile
Collapse
-
Ok thank you very much. My next question is where and how do I post the error message if something other than y or n is entered? Ive looked all over in my book and I couldnt find the command that will validate a string. I found plenty for numbers IE nextDouble but nothing that explains how to check the data they enter when they determine if they wish to continue or not? -
Java data validation question
Ok this is homework, and I have wrestled with this for quite awhile now. My program is supposed to give an error message if the user enters any invalid entries. The program works great when the user enters an invalid integer, but my problem is trying to get it to give an error message when the user enters an invalid entry when asked if they want to continue. Currently right now it just runs again if an invalid entry is entered. But I need it to give...
No activity results to display
Show More
Leave a comment: