Copy value to an Array

ReturnMethodSummary
static boolean[]copyOf(boolean[] original, int newLength)Copies the specified array, truncating or padding with false (if necessary) so the copy has the specified length.
static byte[]copyOf(byte[] original, int newLength)Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
static char[]copyOf(char[] original, int newLength)Copies the specified array, truncating or padding with null characters (if necessary) so the copy has the specified length.
static double[]copyOf(double[] original, int newLength)Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
static float[]copyOf(float[] original, int newLength)Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
static int[]copyOf(int[] original, int newLength)Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
static long[]copyOf(long[] original, int newLength)Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
static short[]copyOf(short[] original, int newLength)Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
static<T> T[] copyOf(T[] original, int newLength)Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
static<T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
static boolean[]copyOfRange(boolean[] original, int from, int to)Copies the specified range of the specified array into a new array.
static byte[]copyOfRange(byte[] original, int from, int to)Copies the specified range of the specified array into a new array.
static char[]copyOfRange(char[] original, int from, int to)Copies the specified range of the specified array into a new array.
static double[]copyOfRange(double[] original, int from, int to)Copies the specified range of the specified array into a new array.
static float[]copyOfRange(float[] original, int from, int to)Copies the specified range of the specified array into a new array.
static int[]copyOfRange(int[] original, int from, int to)Copies the specified range of the specified array into a new array.
static long[]copyOfRange(long[] original, int from, int to)Copies the specified range of the specified array into a new array.
static short[]copyOfRange(short[] original, int from, int to)Copies the specified range of the specified array into a new array.
static<T> T[] copyOfRange(T[] original, int from, int to)Copies the specified range of the specified array into a new array.
static<T,U> T[] copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) Copies the specified range of the specified array into a new array.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.