I have an ArrayList. I want to check if all elements of the list are greater then or less then certain condition. I can do it by iterating on eac
ArrayList
You cannot check values without iterating on all elements of the list.
for(Integer value : myArrayList){ if(value > MY_MIN_VALUE){ // do my job } }
I hope this will help