1. Write a function:

that returns the number of occurrences of the character c within the string s. Write a main class to test this method on a number of strings.
2. Write a function:

that removes each occurrence of the character c from the string s, returning the resulting string. Write a main class to test this method on a number of strings.