[java] Best way to copy from one array to another