Here you can find the source of array(int... rest)
private static final byte[] array(int... rest)
//package com.java2s; /* J_LZ_COPYRIGHT_BEGIN ******************************************************* * Copyright 2011 Laszlo Systems, Inc. All Rights Reserved. * * Use is subject to license terms. * * J_LZ_COPYRIGHT_END *********************************************************/ public class Main { private static final byte[] array(int... rest) { int len = rest.length; byte bs[] = new byte[len]; for (int i = 0; i < len; ++i) { bs[i] = (byte) rest[i]; }//from w w w . j a v a2 s . co m return bs; } }