ArrayList.clone()

ArrayList

ArrayList.clone() Create shallow clone of the ArrayList.


add()
Examples with output
ArrayList<String> languages = new ArrayList<String>();
languages.add("Java");
languages.add("PHP");
languages.add("Python");
System.out.println(languages); //[Java, PHP, Python]

ArrayList languages2= new ArrayList();
languages2=(ArrayList)languages.clone();
System.out.println(languages2); //[Java, PHP, Python]
ArrayList Tutorials



plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer