how to concatenate two arrays
int[] z = x.Concat(y).ToArray();
how to concatenate two arrays
int[] z = x.Concat(y).ToArray();
how to concatenate two arrays
var z = new int[x.Length + y.Length];
x.CopyTo(z, 0);
y.CopyTo(z, x.Length);
concat two arrays
public static void main(String[] args) {
String[] arr3 = {"A", "B", "C","Z","N"};
String[] arr4 = {"D", "E", "F","G","U"};
ArrayList<String> list1 = new ArrayList<>();
// [A, B, C, Z, N, D, E, F, G, U]
for( String each: arr3 ){
list1.add( each );
}
for(String each1 : arr4 ){
list1.add(each1);
}
System.out.println(list1); // [A, B, C, Z, N, D, E, F, G, U]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us