Remove Vowels from a String
从字符串中删除元音字母. 直接用正则做.
class Solution {
public String removeVowels(String S) {
return S.replaceAll("[aeiou]","");
}
}
从字符串中删除元音字母. 直接用正则做.
class Solution {
public String removeVowels(String S) {
return S.replaceAll("[aeiou]","");
}
}