Check for value in array

前端 未结 4 1889
时光说笑
时光说笑 2021-01-29 03:14

I need to check the array to see if the user input is already present, and display a message as to whether it is or isn\'t there. The first part is working, but I tried to creat

4条回答
  •  温柔的废话
    2021-01-29 03:56

    You can use the arraylist.contains("name") method to check if there is a duplicate user entry.

提交回复
热议问题