I have a simple idea on my mind but I am not sure how to implement it properly... Here's the deal:
Say there is an ArrayList called myList of size 5 and then there is an Integer called testNumber. The values inside myList and/or testNumber are irrelevant.
What I need to do is compare the testNumber variable with each of myList's integers
and if testNumber doesn't equal to none of them, then perform an operation (i.e. System.out.println("hi");).
How should I go about it..?