I am writting a program that displays m(i) for i = 1,2,3,4,5,107,1060. The result should be a double value. Whereas the series is m(i) = 1/2 + 2/3 +.....i/i+1

I am trying to pass the required numbers by using an array. But I'm getting a compatibility problem. So far I have this:

```
public class Recursive {
    public static void main(String[] args){
        int[] s;
        s = new int[]{1,2,3,4,5,107,1060};

        System.out.println(""   ,m(s));
    }

    public static double m(int i){
        double result;
        if(i > 1){
            result = i/(i + 1) + m(i - 1);
        } else{
            result = i/(i + 1);
        }
        return result;
    }
}

```