Java Array Fill fillArray(String value, int length)

Here you can find the source of fillArray(String value, int length)

Description

fill Array

License

Apache License

Declaration

public static String[] fillArray(String value, int length) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;

public class Main {

    public static String[] fillArray(String value, int length) {
        String[] result = new String[length];
        Arrays.fill(result, value);
        return result;
    }//from   w w  w  .j  a v a 2  s  .com
}

Related

  1. fillArray(int[] array, int value)
  2. fillArray(int[] nums)
  3. fillArray(Object array, int value)
  4. fillArray(Object[] array, Object value)
  5. fillArray(Object[] objects, Object object)
  6. fillArray(String[] array, int size, String fillString)
  7. fillArray(T[] arr, T val)
  8. fillArray2D(double[][] arr, double value)
  9. fillArrayWith(byte[] dest, byte[] pattern)