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
change Stocks[i] to Stocks.get(i) and NameofFileinDir[j] to NameofFileinDir.get(j)
Additional suggestions:
Also make NameofFileinDir to A hashSet for better performance
Also follow java camelCase naming convention like change NameofFileinDir to nameofFileinDir