Java program to find the occurrence of a character in a string

Java program to find the occurrence of a character in a string