Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean stringE(String str) {
- int count = 0;
- for(int i = 0; i< str.length(); i++) {
- if(str.charAt(i) == 'e') {
- count++;
- }
- }
- return (count >= 1 && count <= 3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement