Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public static int getECount(String input){
  2. int count = 0;
  3. for(int i=1;i<=input.length;i++{
  4. if(input.substring(i-1,i).equals("e") || input.substring(i-1,i).equals("E")){
  5. count++;
  6. }
  7. }
  8. return count;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement