How do I get scanner to work with the arrays
<p>Create ten accounts in an array with id 0, 1, 2 ...9, and initial balance $50.  The system prompts the user to enter an id.  If the id is entered incorrectly, ask the user to enter a correct id</p>

<p>This is what I have so far am stuck as to how to get scanner to work with the arrays</p>

<pre><code>package Object_1_Programs;
import java.util.Scanner;
/**
 *
 * 
 */
public class Accounts_Test {
    public static void main(String [] args){
        //declare arrays
        int [] a=new int[9];



        double balance=50;

        Scanner input=new Scanner(System.in);
        System.out.print("Enter Your ID:");
        a[id]=input.nextInt();



    }

}
</code></pre>

<p>Any help will do thanks</p>
