All pastes #987603 Raw Edit

Anonym

public text v1 · immutable
·published 2008-04-16 17:22 UTC
rendered paste body
    public static void attacVer(String str)
    {
        String alphabet = new String("abcdefghijklmnopqrstuvwxyz");
        char[]alpha = alphabet.toCharArray();
        char[]eingabe = str.toCharArray();
            for (int j=0; j <26; j++){
                int anzahl=0;
                for (int i= 0; i < str.length(); i++)
                {
                    if (alpha[j] == str.charAt(i)){
                        anzahl = anzahl +1;
                      
                    }    
                }
                anzahlDerBuchstaben[j] = anzahl;
                System.out.println(alpha[j]+"="+ ergebnis);
            }
         
     }