import java.io .* ; import java.util .* ; public class Tahed{ public static void main(String args[])throws Exception { PrintWriter valja=new PrintWriter (System.out ,true); BufferedReader sisse=new BufferedReader (new InputStreamReader (System.in )); if (args.length !=1) {valja.println ("Parameetri viga progi jooksutamisel");System.exit (0);} char []taishaalik={'a','e','i','o','u','ä','ö','ü' ,'õ' }; char []kaashaalik={'b','c','d','f','g','h','j','q','k', 'w','l','m','n','p','r','s','t','v','x','z','y'}; Arrays.sort( taishaalik); Arrays.sort( kaashaalik); int t=0,k=0; try{ BufferedReader f=new BufferedReader (new FileReader (args[0])); String lause ; int j=0,i; while ((lause=f.readLine ())!=null){ for(i=0;i=0 ){t+=1;j++;} if ( Arrays.binarySearch(kaashaalik,taht)>=0 ){k+=1;j++; } } } valja.println (" Tais :" +t + " kaas :"+ k+" kokku oli "+j ); }catch(FileNotFoundException e){valja.println ("Ei ole sellist faili !");System.exit (0);} catch(Exception e){valja.println ("Tekkis viga !");System.exit (0);} } }