Iam trying to compare each string or int in array with another array then print the results according to whether the string exists or not in the other array:
Below is the wh
If you're using ArrayList, then you need to use the get(index) method to access the variable at that index. Also the .equals(object) returns a boolean value so no need of > 0
if (Stocks.get(i).equals(NameOfFileINDir.get(j)) {
}