Iterating through List
Hi All,
I am failly new to Java
I am getting List testqueue as a result of query.I am casting it to Task Object
Task object has property named status.
I want to check if all the elements in List has status 30
How can I check this.
Following is the code
List testqueue
for (Iterator it1 = testqueue.iterator(); it.hasNext(); ){
Task task = (Task) it1.next();
int status = task.getStatus();
// now how to check that all the elements in this list have status== 30 ?
}
I will appriciate your help.
Thanks.

