Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

loop through array java


public class HelloWorld {
  public static void main(String[] args) {
    
    // init array
    String[] family = new String[] {"Member1", "Member2", "Member3", "Member4", "Member5"};
    
    // print array 
    for(String name : family)
    {
    	System.out.println(name);
    }
    
 
  }
}
 
PREVIOUS NEXT
Tagged: #loop #array #java
ADD COMMENT
Topic
Name
7+5 =