Store the following sentence in String
“JAVA IS TOUGH LANGUAGE"
I would like to ask a user to provide a character as an input and then print the total number of occurrence of that character in the above sentence. Moreover if a user wants to search a particular phrase or character in string he/she should able to search it.
Please tell me the simple way of beginners.