Java Array Fill fill(byte[] val, byte b)

Here you can find the source of fill(byte[] val, byte b)

Description

fill

License

Open Source License

Declaration

public static byte[] fill(byte[] val, byte b) 

Method Source Code

//package com.java2s;
/**/*  ww w .j av  a2 s  .  co m*/
 * ?????????? unsigned ????????????????????????????????????????
 *
 * License : MIT License
 */

import java.util.Arrays;

public class Main {
    public static byte[] fill(byte[] val, byte b) {
        if (val == null)
            throw new IllegalArgumentException("val should not be null");

        Arrays.fill(val, b);
        return val;
    }
}

Related

  1. fill( T[] a, T val)
  2. fill(byte[] arr)
  3. fill(char[] chars, int fromIndex, int toIndex, char c)
  4. fill(double[][] array, double s)
  5. fill(double[][] d, double val)
  6. fill(final double[][] arr, final double val)