How to solve the Codewars's Vowel Count

Today I try to solve the algorithm problem of codewars.

Description

Return the number of vowels in the given string.

We will consider a, e, i, o, and u as vowels for this Kata.

The input string will only consist of lower case letters and/or spaces.

Code

  • split : returns array of strings computed by splitting.

  • equals : returns true if the String are equal.

public class Vowels {

  public static int getCount(String str) {
        # Codewars COC 정책으로 인하여 코드 제거
    return vowelsCount;
  }

}
Written on December 2, 2018