Arithmetic mean problem: I have the right answer for all tests, but the errors says "Be sure that the displayed result is a real number (don't round to the nearest whole number).
Be sure that the displayed result is a real number."
i didn't do anything special either. I just used what we've been learning.. an OOP approach. right?

```
package com.codegym.task.task05.task0507;
/*
Arithmetic mean
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
Solution answer = new Solution();
System.out.println(answer.inputMean());
}
public int inputMean() throws Exception{
int counter = 0;
int totalMean = 0;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
while(true){
int number = Integer.parseInt(reader.readLine());
counter++;
if (number == -1){
totalMean = totalMean / (counter - 1);
break;
}
else{
totalMean += number;
}
}
return totalMean;
}
}
```

My answer is 36. very much a real number.package com.codegym.task.task05.task0507;
/*
Arithmetic mean
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
Solution answer = new Solution();
System.out.println(answer.inputMean());
}
public int inputMean() throws Exception{
int counter = 0;
int totalMean = 0;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
while(true){
int number = Integer.parseInt(reader.readLine());
counter++;
if (number == -1){
totalMean = totalMean / (counter - 1);
break;
}
else{
totalMean += number;
}
}
return totalMean;
}
}