Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Explore in-depth answers to your questions from a knowledgeable community of experts across different fields. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.
Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. The output should include the input character and use the plural form, n’s, if the number of times the character appears is not eactly 1.
Ex if the input is: n Monday
the output is: 1 n
Ex: if the input is: z Today is Monday
The output is 0 z’s
Ex: if the input is: n It’s a Sunday day
the output is: 2 n’s
case matters
Ex: if the input is: n Nobody
the output is: 0 n’s
N is different than N.
I need help putting it in Java
