Lets take an example, we have a collection A = { 3, 6, 9, 12 } and we have to check whether all elements in this sequence is divide by 3 or not. For this we use All operator and pass predicate function condition as a parameter.