Descripción
Sintaxis
public static boolean[] copyOf(boolean[] original, int newLength)
public static byte[] copyOf(byte[] original, int newLength)
public static char[] copyOf(char[] original, int newLength)
public static double[] copyOf(double[] original, int newLength)
public static float[] copyOf(float[] original, int newLength)
public static int[] copyOf(int[] original, int newLength)
public static long[] copyOf(long[] original, int newLength)
public static short[] copyOf(short[] original, int newLength)
static <T> T[] copyOf(T[] original, int newLength)
static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType)
Parámetros
- float[] original,
- char[] original,
- long[] original,
- short[] original,
- int newLength,
- int[] original,
- T[] original,
- byte[] original,
- U[] original,
- double[] original,
- boolean[] original,
- Class<? extends T[]> newType,
Excepciones
NegativeArraySizeException, NullPointerException
Clase Padre
Ejemplo
Líneas de Código
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.