I have been searching here for some time but haven\'t been able to find the answer to it.
I am basically required to use an array for this assignment from college. A
If I understand your question correctly, it appears you want to know the following:
How do I check if my String array contains usercode, the String that was just inputted?
String
usercode
See here for a similar question. It quotes solutions that have been pointed out by previous answers. I hope this helps.