package massiivid; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; public class SademeteAndmestik { double[][] andmed; static int poordumisteArv; public void loeAndmed(Reader lugeja) throws IOException { BufferedReader br = new BufferedReader(lugeja); String esimene = br.readLine(); if (!esimene.startsWith("Kuu,")) { throw new RuntimeException("Tundmatu vorming"); } andmed = new double[13][32]; String rida = br.readLine(); while (rida != null) { String[] m = rida.split(","); int kuu = Integer.parseInt(m[0]); int paev = Integer.parseInt(m[1]); double arv = Double.parseDouble(m[3]); andmed[kuu][paev] += arv; rida = br.readLine(); } for(int kuu=0; kuu System.out.println(e); return arv/2.0; } public static class LisaAbid{ } } public class SademeteInfo extends Thread{ double mediaan; double keskmine; int andmed; int kuudeArv(){ return SademeteAndmestik.this.andmed.length-1; } } }