java字符串中元音字母反转

package stringRe;

//元音字母反转
public class ReverseVowelsofString {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
                   String s = "hello";
                   SolutionVo sv = new SolutionVo();
                   String res = sv.reverseVowels(s);
                   Show1.show(res);
	}

}

 class SolutionVo {
    public String reverseVowels(String s) {
//        //将字符串中的原因反转存储===============》居然说超时
//    	String reverString = new StringBuffer(s).reverse().toString();
//    	String vols = "";//存储反转后的元音
//    	int sl = s.length();
//    	for(int i = 0; i

你可能感兴趣的:(算法,leetcode)