bug fixes
[IRC.git] / Robust / src / Benchmarks / Chat / analyze.java
1 import java.io.*;
2 public class analyze {
3     public static void main(String[] q) {
4         int sum=0;
5         int count=0;
6         try {
7         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
8         while(true) {
9             String s=br.readLine();
10             String x=s.substring(6,s.indexOf(' ',6));
11             
12             sum+=(new Integer(x)).intValue();
13             count++;
14             System.out.println(sum+"   "+(((double)sum)/count));
15         }
16         } catch(Exception e) {}
17     }
18
19
20
21 }