Answers for "array with for loop example"

0

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] );
  }
}
Posted by: Guest on May-15-2020

Browse Popular Code Answers by Language