Write a static method remove(int v, int[] in) that will return anew array of the integers in the given array, but with the value vremoved. For example, if v is 3 and in contains 0, 1, 3, 2, 3, 0,3, and 1, the method will return an array containing 0, 1, 2, 0,and 1. Hint: You can follow two steps to solve this problem: Createan array in the method, let say you called it result. Before youcreate the result array, you need to find the number of values thatwill be in the result. Assign all values from in array to resultsarray except v value. Return the array result. (JAVA) the mainmethod and the class should be in 2 separate files