Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

arrays with for loops

// For-All
// Do something for every element
public void forAll(int[] nums) {
  for (int i=0; i<nums.length; i++) {
    System.out.println( nums[i] );
  }
}
Source by codingbat.com #
 
PREVIOUS NEXT
Tagged: #arrays #loops
ADD COMMENT
Topic
Name
5+4 =