Public feed #601872

Unnamed

public java v1 · immutable
Raw Edit
·published 2007-07-03 19:36 UTC
rendered paste body
class Phrases{	public static void main(String[] arguments){		String[] phrase = {		"PARA MI LA MAMA DE JUAN ES PUTA",		"PARA MI ADVANCE ES CHINO",		"PARA MI TODOS SON CHINOS",		"PARA MI JESUS ES RACISTA",		"advance es feo"		};				int[] chars = new int[26];		for(int i=0;i<phrase.length;i++){			phrase[i].toUpperCase();			char[] sentence = phrase[i].toCharArray();			for(int a=0;a<sentence.length;a++){				int lettersNum = 0;				char letters = 'A';				while(letters<='Z'){					if(letters == sentence[a]){						chars[lettersNum]++;					}					lettersNum++;					letters++;				}			}				}				int a = 0;		char b = 'A';		while(a<26){			System.out.println(b+": "+chars[a]);			a++;			b++;		}	}}