Write a Java code to create a recursive function that performs an element-by-element operation on two one-dimensional arrays of identical size provided by the user. The operation should be a parameter of type character with a value in the set {‘+’, ‘-‘, ‘*’, ‘/’}. The arrays must be populated with random integers in the range [-10, 10]. For example, given A = [3, 1, -2] and B = [9, -7, -4], both of size 3, and the operation ‘+’, the resulting array is equal to [12, -6, -6].