Answers for "loop through arraylist kotlin"

18

java loop through arraylist

ArrayList<String> namesList = new ArrayList<String>(Arrays.asList( "alex", "brian", "charles") );
         
for(String name : namesList)
{
    System.out.println(name);
}
Posted by: Guest on March-29-2020
3

kotlin iterate array

val names = listOf("Anne", "Peter", "Jeff")
for (name in names) {
    println(name)
}
Posted by: Guest on May-17-2020

Code answers related to "loop through arraylist kotlin"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language