We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc99aed commit b043329Copy full SHA for b043329
Leetcode/easy/1119. Remove Vowels from a String
@@ -0,0 +1,12 @@
1
+class Solution {
2
+ public String removeVowels(String s) {
3
+ StringBuilder sb = new StringBuilder();
4
+ for (char ch : s.toCharArray()) {
5
+ if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
6
+ continue;
7
+ else
8
+ sb.append(ch);
9
+ }
10
+ return sb.toString();
11
12
+}
0 commit comments