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

Java: How to clone Arrays

Java: How to clone Arrays
{filelink=11064}

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:

  • clone java array
  • display array element in ascending order

No comments yet.

Leave a Comment