Can you give me a hand please.
I need to do a check, to check if the userCode matches any code in my string array or if the oldUser code also matches any code from the array
String[] code = {"1111", "2222", "3333", "4444", "5555"};
String userCode;
String oldUser;
if (userCode.equals(code) || oldUser.equals(code)) {
RUN
} else { die }
thanks
Arrays.binarySearch(code, userCode) == 0if you want speed in searching the array.