@@ -0,0 +1,885 @@
+/**%0A *Write a function that takes a string as input and reverse only the vowels of a string.%0A *%0A *Example 1:%0A *Given s = %22hello%22, return %22holle%22.%0A *%0A *Example 2:%0A *Given s = %22leetcode%22, return %22leotcede%22.%0A *%0A *Note:%0A *The vowels does not include the letter %22y%22.%0A */%0Aclass Solution %7B%0A    public String reverseVowels(String s) %7B%0A        String vowels = %22aeiouAEIOU%22;%0A%09%09char%5B%5D array = s.toCharArray();%0A%09%09int start = 0;%0A        int end = s.length() - 1;%0A        while (start %3C end) %7B%0A            while (start %3C end && !vowels.contains(String.valueOf(array%5Bstart%5D))) start++;%0A            while (start %3C end && !vowels.contains(String.valueOf(array%5Bend%5D))) end--;%0A            %0A            char temp = array%5Bstart%5D;%0A            array%5Bstart%5D = array%5Bend%5D;%0A            array%5Bend%5D = temp;%0A            %0A            start++;%0A            end--;%0A        %7D%0A%09%09%0A%09%09return String.valueOf(array);%0A    %7D%0A%7D%0A

Create ReverseVowelsOfAString.java