Here you can find the source of sum(Object[] srcOne, Object[] srcTwo)
public static Object[] sum(Object[] srcOne, Object[] srcTwo)
//package com.java2s; /************************************************************************************** * Copyright (C) 2008 EsperTech, Inc. All rights reserved. * * http://esper.codehaus.org * * http://www.espertech.com * * ---------------------------------------------------------------------------------- * * The software in this package is published under the terms of the GPL license * * a copy of which has been included with this distribution in the license.txt file. * **************************************************************************************/ public class Main { public static Object[] sum(Object[] srcOne, Object[] srcTwo) { Object[] result = new Object[srcOne.length + srcTwo.length]; System.arraycopy(srcOne, 0, result, 0, srcOne.length); System.arraycopy(srcTwo, 0, result, srcOne.length, srcTwo.length); return result; }//ww w . ja v a 2 s . c o m }