Hello,I have a user input and trying to write a precondition that will give an error if the user inputs number or some other odd character (except ' and .)
I am thinking of writing and if statement that if my search method finds anything like that it will prompt user to re-enter. The problem is i dont know how to implement the search method. Can you help me?
here is a small piece of my code:
[ System.out.println("Please enter name of the employee:");
name = stdin.readLine();
if ("search will find numbers or weird characters in the input")
then
{
}
]