Here you can find the source of clone(String[] array)
Parameter | Description |
---|---|
array | the array to clone, may be null |
private static String[] clone(String[] array)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w.ja v a 2 s . c o m*/ * Clones an array returning a typecast result and handling null. * This method returns null for a null input array. * * @param array the array to clone, may be null * @return the cloned array, null if null input */ private static String[] clone(String[] array) { if (array == null) { return null; } return array.clone(); } }