Java Array Create array(int... rest)

Here you can find the source of array(int... rest)

Description

array

License

Open Source License

Declaration

private static final byte[] array(int... rest) 

Method Source Code

//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;
    }
}

Related

  1. array(CharSequence... args)
  2. array(final T... array)
  3. array(final T... elements)
  4. array(int... values)
  5. array(int[] array, int index)
  6. array(Object... objects)
  7. array(Object... val)