Delete CharacterCalculator.java
This commit is contained in:
parent
9611f5a5cf
commit
84c8c70dac
|
@ -1,15 +0,0 @@
|
|||
package mocks;
|
||||
|
||||
public class CharacterCalculator {
|
||||
|
||||
public int countCharacterInString(String value, char characterToCount) {
|
||||
int result = 0;
|
||||
for (int i = 0; i < value.length(); i++) {
|
||||
if (value.charAt(i) == characterToCount) {
|
||||
result++;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue