fork download
  1. class M{
  2. public static void main(String[]a){
  3. a=new String[]{"ThIs Is ThE iNPUT , WITH 72/2 CHARS!"};
  4. int[]m=new int[256];
  5. for(int z:a[0].getBytes())m[z]++;
  6. for(int z:a[0].getBytes()){
  7. System.out.print(m[z]>0?(m[z]+" "):"");
  8. m[z]=0;
  9. }
  10. }
  11. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
4 2 3 2 7 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1