replacing a vowel in an array
<p>replace
prompt the user for a character. Use the character to replace all vowels in the 
array. </p>

<p>Just need help with the last thing. idk how to do it. Can someone show me how to do it? As i said just need help with that specific function only if u see something else wrong suggestions appreciated .</p>

<p>import java.util.Scanner;       // user input</p>

<p>public class ArrayLab
{
    public static final int SIZE = 10;</p>

<pre><code>//variables
 int total = 0;
 int mean;



public static void main(String[] args)
{
    char [ ]letters = {'A', 'B' , 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'};

    Scanner userIn = new Scanner( System.in );

    do
    {
         System.out.print( "\n\n*******MENU*********\n" +
                          "1 -display the contents in the array"   + "\n" +
                          "2 -Enter a character"              + "\n" +
                          "3 -shift all the contents in the array to the right" + "\n" +
                          "4 -change all letters to uppercase"   + "\n" +
                          "5 - calculate the integer average oh characters in the array"+ "\n" +
                          "13 - Quit\n"  +

                          "Enter your selection: " );
                     choice = userIn.nextInt();
                     grade =  userIn.nextInt();



    if( choice == 1 )
    {
        display(letters);
    }
    else if( choice == 2 )
    {
        replace(letters);
    }
    else if( choice == 3 )
    {
        System.out.print("\nshifted Array: " );
                shiftRight( letters );
    }
    else if( choice == 4 )
    {

    }
    else if( choice == 5 )
    (
        average(letters);
    }
    else if( choice != 6 )
    {
        System.out.println("\n***ERROR*** Invalid selection.\n" );
    }

    }while( choice != 6 );
</code></pre>

<p>}</p>

<pre><code>/*******************************************************************************
 This function will display(). The array are separated by commas and a space to screen
*******************************************************************************/
public static void display( char [] letters )
{
    for( char index=0; index &lt; letters.length; index++ )

     if ( index &lt; letters)
     {
        System.out.print( letters[0] + " , " + letters[1] + " , " + letters[2] + "," + letters[3] + ","
                        + letters[4] + "," + letters[5] + "," + letters[6] + "," + letters[7] + ","
                        + letters[8] + "," + letters[9] + "," + letters[10] );
     }
     else if(index &gt;= letters)
        System.out.println();


}

/********************************************************************************
 This function will prompt the user to replace all vowels in the array
********************************************************************************/
public static void replace( char [] letters )
{
    int i;
    for(int i =0; i &lt; letters.length; i++)
    {
        i = letter[0,4,8];
        System.out.println(
</code></pre>
