Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to clone Arrays

Java: How to clone Arrays

public class CloneArrays
  public static void main(String[] argv) throws Exception
  		// int array
    int[] myTab = new int[] { 1, 2, 3, 9, 8 };
       // clone int array
    int[] myCloneArrays = (int[]) myTab.clone();

Users who found this page were searching for:

  • display array element in ascending order
  • clone java array

No comments yet.

Leave a Comment