Boucle via un studio Android ArrayList

List<MyObject> AllData = dataBaseHelper.getAllData(); //initialize

    for (MyObject obj : AllData) { //loop
        if (obj.getNum() == num) { //condicion
            //code
        }
    }
Happy Owl