Hi all,
I wrote a function which is used to concat two Arrays. HOwever, I need to specifiy the data type in the function, it's not OO and absolutely not dynamic, how can I improve it ?
public static Object concatDualArray(Object[] A, Object[] B) {
StandingData[] C= new StandingData[A.length+B.length];
System.arraycopy(A, 0, C, 0, A.length);
System.arraycopy(B, 0, C, A.length, B.length);
return C;
}
I summon that function from my core function, which is
StandingData[] trancheStatusListData = (StandingData[])
TrancheUtility.concatDualArray((Object[])trancheApprovedStatusListData, (Object[])trancheApprovalStatusListData);
Is there any reflection method can let my function looks more OO ?
Thanks for helping me
Transistor