What is my wrong?
package com.codegym.task.task05.task0507;
/*
Arithmetic mean
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
InputStream keyboard = System.in ;
Reader keyboardReader = new InputStreamReader(keyboard) ;
BufferedReader input = new BufferedReader(keyboardReader) ;
double i = 0 ;
int x = 0 ;
while (true) {
int a = Integer.parseInt(input.readLine()) ;
i =+ a ;
x ++ ;
if (a == -1)
break;
System.out.println(i/x) ;
}
}
}