What is the best way to check the existence of a certain array name? for example, if i had a array called:
String array1[] = new String[]{"abc", "def", "ghi"};
what is the best way to check if array1
exists or not?
Additionally, is there a way to see if the string "abc"
exists inside the array if we don't know which index "abc"
is in?
EDIT: I'm planning to have the user input a string and check if the input string matches with any of the string array variable names