I have used this because the default array values are 0. When we loop through the array to check for duplicate entries, because 0 already exists, the message is printed asking you to enter another...
Type: Posts; User: JavaPF
I have used this because the default array values are 0. When we loop through the array to check for duplicate entries, because 0 already exists, the message is printed asking you to enter another...
Hello luke,
You are going to need an if statement to compare the value of the userinput array with the inputted name value.
This is how I would probably do it. I have made my code changes bold....