Java Array Fill fillArray(int[] nums)

Here you can find the source of fillArray(int[] nums)

Description

fill Array

License

Open Source License

Declaration

public static void fillArray(int[] nums) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void fillArray(int[] nums) {
        int start = nums.length;
        for (int i = 0; i < nums.length; i++) {
            nums[i] = start--;/*ww  w.ja  v  a 2s .co m*/
        }
    }
}

Related

  1. fillArray(int arrayLength)
  2. fillArray(int min, int max)
  3. fillArray(int size, Float value)
  4. fillArray(int value, int length)
  5. fillArray(int[] array, int value)
  6. fillArray(Object array, int value)
  7. fillArray(Object[] array, Object value)
  8. fillArray(Object[] objects, Object object)
  9. fillArray(String value, int length)