Another option is to use the clone() method of the array. It will work nicely for a plain simple 1-subscript array like that.By the way: write int a rather than int a. That asserts that the type of a is int not int.
Joined: Jan 30, 2009
Thanks for your time , But i dont want to do it any operation with the help of java.util.Arrays.