Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

loop through an arraylist android studio

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

    for (MyObject obj : AllData) { //loop
        if (obj.getNum() == num) { //condicion
            //code
        }
    }
 
PREVIOUS NEXT
Tagged: #loop #arraylist #android #studio
ADD COMMENT
Topic
Name
4+1 =