mjmg
2007-07-07 21:56:34 UTC
***here's the source code: (please do help me debug and run this JAVA program please)
class go{
public static void main(String [] args){
String s = args[0];
int[] f = tally(s);
}
static int[] tally(String s){
int[] f = new int[26];
s = s.toUpperCase();
for(int i=0; i
if (Character.isLetter(ch)){
int j = ch - 'A';
++f[j];
}
}
return f;
}
static void print(int[] f){
for(int j=0; j
if (f[j]>0)
System.out.println(ch +": "+f[j]);
}
}
}