PROGRAMMING:Two one dimensional arrays are added to sum
1. The sum of two vectors required in this topic, each vector is represented by a one-dimensional array, and the specific requirements are: < br / >
Create a method in the main class. The function of the method is to find the sum of two one-dimensional arrays, get the sum array and return it. Method declaration is: < br / >
public static int[] add(int arr[],int []arr2)
2. Create two one-dimensional arrays in the main method. The length of one-dimensional array is obtained by keyboard, and the elements of array are input by keyboard< br/>
3. Call the add method to get the sum of two one-dimensional arrays and output the value of this one-dimensional array.
###Input format:
The first line is the number of elements in the input array
In the second line, enter the elements of the first array separated by spaces
In the third line, enter the elements of the second array separated by spaces
###Output format:
Output the elements of the summation array, one element per row.
###Input example:
Here is a set of inputs. For example:
```in
four
1 2 3 4
5 6 7 8
```
###Output example:
The corresponding output is given here. For example:
```out
six
eight
ten
twelve
```
answer:If there is no answer, please comment
Create a method in the main class. The function of the method is to find the sum of two one-dimensional arrays, get the sum array and return it. Method declaration is: < br / >
public static int[] add(int arr[],int []arr2)
2. Create two one-dimensional arrays in the main method. The length of one-dimensional array is obtained by keyboard, and the elements of array are input by keyboard< br/>
3. Call the add method to get the sum of two one-dimensional arrays and output the value of this one-dimensional array.
###Input format:
The first line is the number of elements in the input array
In the second line, enter the elements of the first array separated by spaces
In the third line, enter the elements of the second array separated by spaces
###Output format:
Output the elements of the summation array, one element per row.
###Input example:
Here is a set of inputs. For example:
```in
four
1 2 3 4
5 6 7 8
```
###Output example:
The corresponding output is given here. For example:
```out
six
eight
ten
twelve
```
answer:If there is no answer, please comment