You may want to use clone:

a = b.clone();

or use arraycopy(Object source, int sourcePosition, Object destination, int destinationPosition, int numberOfElements)

System.arraycopy(b, 0, a, 0, b.length());

 

Leave a Reply

Your email address will not be published. Required fields are marked *