Java, how to compare Strings with String Arrays

后端 未结 6 1954
耶瑟儿~
耶瑟儿~ 2020-12-15 06:07

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

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 07:05

    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?

    See here for a similar question. It quotes solutions that have been pointed out by previous answers. I hope this helps.

提交回复
热议问题