com/codegym/task/task05/task0507/Solution.java:11: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class com.codegym.task.task05.task0507.Solution
com/codegym/task/task05/task0507/Solution.java:11: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class com.codegym.task.task05.task0507.Solution
com/codegym/task/task05/task0507/Solution.java:11: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class InputStreamReader
location: class com.codegym.task.task05.task0507.Solution
package com.codegym.task.task05.task0507;
/*
Arithmetic mean
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader buffer= new BufferedReader(new InputStreamReader(System.in));
int aCount = 0;
double sum = 0;
while (true){
String number1 = buffer.readLine();
int a= Integer.parseInt(number1);
if(a == -1){
break;
}
aCount++;
sum = sum + a;
}
double avg = sum/aCount;
System.out.println(avg);
}
}