So here\'s the code I\'ve got so far...
import java.util.Scanner; class count{ public static void main(String args[]){ Scanner s=new Scanner(Syst
First in initialize the arr[] i.e
for(int i=0;i
then :
for(int j= 0;j<=len-1;j++){ count=0; for(int k=0;k<=len-1;k++){ if(ch[j]==ch[k]){ arr[j]= count++; } } }