jeudi 19 novembre 2020

how to iterate through an object's list?

i'm curently facing this problem in java : let me say i have a class listOfTasks

public class ListOfTasks {
    private Point startingPoint;
    ArrayList<Task> tasks;
}

in another class , i want to iterate through the arrayList tasks directly by calling ListOfTasks , and not by retriving tasks first and then iterate through it. thank you for your help

Aucun commentaire:

Enregistrer un commentaire