Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.71K
1 Posted Topic
package com.test; import java.util.HashMap; public class AlphaCount { public static void main(String[] args) { HashMap<Character,Integer> hm=new HashMap <Character,Integer>(); char c='/'; char d; int counter=0; String s="mmmma aahhhaa"; int l=s.length(); for(int i=0;i<l;i++) { c=s.charAt(i); { if(hm.containsKey(s.charAt(i))==false) for (int j=i;j<l;j++) { d=s.charAt(j); if(c==d ) { counter++; } hm.put(c,counter); } } counter=0; } …
The End.
Reshma_2