Trying to add a character before each vowel in a String
<p>I want to insert an "ab" before every vowel in a word</p>

<p>Example, if the user enters the word: fire
it has to be changed to: fabirabe
but my code is only entering the ab before the word like: abfire. How can I fix that?</p>

<p>Here's my code so far: </p>

<pre><code>import java.util.Scanner;
public class Foothill
{ 
   // class variables shared by more than one method
    String prompt;
    static String strUserResponse;

    // main method
    public static void main (String[] args)
    {
        giveInstructions();
        getUserInput();  
        convertToTurkeyIrish();
        vowelCounter();
    }
    public static String convertToTurkeyIrish()
    {

        String turkeyIrish = strUserResponse;
        String turkeyIrish2;
        turkeyIrish2 = "ab" + strUserResponse.replaceAll("(aeiouAEIOU)", "$1ab");
        System.out.println("Word In Turkey Irish: " +  turkeyIrish2);
        return turkeyIrish;
    }

    public static void vowelCounter()
    {
        int vowel = 0;
        strUserResponse.length();
        char vowels;
        vowels = ' ';
        for (int j = 0; j &lt;= strUserResponse.length() - 1 ; j++)
        {
            vowels = strUserResponse.charAt(j);
            if  ((vowels == 'a') || (vowels == 'A') || (vowels == 'e') ||   (vowel == 'E') || (vowel == 'i')|| (vowels == 'I') || (vowels == 'o')  (vowels == 'O') || (vowel == 'u') || (vowels == 'u'))
            {
                System.out.println("Vowels in " + strUserResponse + ": " + vowel++);
            }
        }
    }
}
</code></pre>