Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

loop through array in java

public static void loopRecursive(String[] thisArray) {
  if (thisArray.length <= 0) {
    return;
  }
  System.out.println(thisArray[0]);
  loopRecursive(Arrays.copyOfRange(thisArray, 1, thisArray.length));
}
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #loop #array #java
ADD COMMENT
Topic
Name
4+2 =