I tried write a program that should be printing iterative sums.

But the current code is instead printing the final sum for each iteration, and I can't figure why :

```
package sumseries;
public class Sumseries {
   public static void main(String[] args) {
     System.out.println("i" + "\t\t"+ "m(i)");
     System.out.println("===================");
     int x=0;
       for(int i=1;i<=20;i++){
        System.out.println( i + "\t\t" + series(x) );
       }
   }

  public  static double series(int i){
    double sum=0;

    for(i=0;i<=20;i++){

      sum +=  ((double) i)/(i+1);

    }
    return sum;
  }
}

```

What is wrong here and how can I fix it ?