Here you can find the source of clone(final T[] array)
Parameter | Description |
---|---|
array | a parameter |
public static <T> T[] clone(final T[] array)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w . j av a 2 s . c o m*/ * Method to clone a array * * @param array * @return {@link T[]} */ public static <T> T[] clone(final T[] array) { if (array == null) { return null; } return array.clone(); } }