how to merge two arrays in java without using collections