// program to count the number of occurences of a particular character in a string. import java.util.Scanner; class Count{ int flag=0; Count(String string,char key){ for(int i=0;i