Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

for each loop java


public class Sample {
    public static void main(String[] args) {
        String names[] = { "Jasmine", "Lyka", "Marbie", "Soleen", "Tiny" };
        for (String name : names) {
            System.out.println(name);
        }
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #java
ADD COMMENT
Topic
Name
4+6 =