Here you can find the source of fill(byte[] val, byte b)
public static byte[] fill(byte[] val, byte b)
//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; } }