/* package whatever; // don't place package name! */
import java.util.* ;
import java.lang.* ;
import java.io.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String s
= "Par programming is fun!" ; s = s.toLowerCase ( ) ;
int [ ] contagens = new int [ 256 ] ;
for ( int i = 0 ; i < s.length ( ) ; ++ i)
contagens[ s.charAt ( i) ] ++;
for ( int i = 0 ; i < 256 ; ++ i) {
if ( contagens[ i] > 1 ) {
System .
out .
println ( "Number of occurences of " + ( char ) i
+ " is " + contagens
[ i
] ) ; }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmluZyBzID0gIlBhciBwcm9ncmFtbWluZyBpcyBmdW4hIjsKCQlzID0gcy50b0xvd2VyQ2FzZSgpOwoKCQkKCQlpbnRbXSBjb250YWdlbnMgPSBuZXcgaW50WzI1Nl07CgkJZm9yIChpbnQgaSA9IDA7IGkgPCBzLmxlbmd0aCgpOyArK2kpCgkJCWNvbnRhZ2Vuc1tzLmNoYXJBdChpKV0rKzsKCQoJCWZvciAoaW50IGkgPSAwOyBpIDwgMjU2OyArK2kpewoJCQlpZihjb250YWdlbnNbaV0gPiAxKXsKCQkJCVN5c3RlbS5vdXQucHJpbnRsbigiTnVtYmVyIG9mIG9jY3VyZW5jZXMgb2YgIiArIChjaGFyKWkgKyAiIGlzICIgKyBjb250YWdlbnNbaV0pOwoJCQl9CgkJfQoJfQp9