title: Print out customer name, id, balance
body: <p>I am writing a Java program that I need:</p>
  
  <p>A method to read the customer names and id and store them in an array. (Read a sequence of zero or more lines each containing the name and id of one customer. Instantiate one <code>Customer</code> object per line and store each object in an array of objects. The array need not be more than 10 elements long. The sequence of <code>name</code> and <code>id</code> will end with an empty line).</p>
  
  <h2>Main</h2>
  
  <pre><code>import java.util.Scanner;
  
  public class CustomerTest {
      public static void main(String[] args) {
          Customer[] customers = new Customer[10];
          Scanner myScanner = new Scanner(System.in);
          int numItem;
          readCustomer(myScanner, customers); //not sure about this calling
          readNameAmount(myScanner, customers); ////not sure about this calling
      }
      public static void readCustomer(Scanner myScanner, Customer[] input) {
          boolean streamEnded = false;
          int numItem = 0;
          while (!streamEnded &amp;&amp; myScanner.hasNext()) {
              String name = myScanner.nextLine();
              String id = myScanner.nextLine();
              if (name.length() == 0 &amp;&amp; id.length() == 0) {
                  streamEnded = true;
              } else {
                  input[numItem] = name; //error
                  input[numItem] = id; //error
              }
              numItem++;
              Customer customerTest = new Customer(name, id);
          }
      }
      public static void readNameAmount(Scanner myScanner, Customer[] input) {
          while (myScanner.hasNext()) {
              String id = myScanner.nextLine();
              double amount = myScanner.nextDouble();
              int i = 0;
              boolean found = false;
              while (i &lt;numItem &amp;&amp; !found) { //error
                  if (customers[i].equals(id)) { //error
                      changeBalance(double value);//error
                  }
                  found = true;
                  i++;
              }
          }
      } 
      public static void print(Customer[] input, int numItem) {
          for (int i = 0; i &lt; numItem; i++) {
              System.out.println(customers[i].toString()); //error
          }
      }
  }
  </code></pre>