Answers for "java cant iterate over array"

0

java loop through array

String[] elements = {"a", "a", "a", "a"};   
for (String s: elements) {           
    //Do your stuff here
    System.out.println(s); 
}
Posted by: Guest on October-01-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language