I have to do this simple project:
(a) A new project named LetterCountExample
(b) A main class for the project named the same of the project.
(c) A class called LetterCounter, with the following members:
i. A eld of type char named letter.
ii. A method of return type int, named doCount(String) that takes one argu-
ment of type String and returns the number of times the character in the
variable letter occurs in the given String.
(d) Create a Junit test that uses the test string "abracadabra" and veries that the
method returns the correct value.
So far I have gotten to this part but dont know what else to do, thanks for your help.
public class LetterCounter {
public char letter = ' ';
public int doCount(){
}
}