title: How do I set an array equal to all these inputs?
body: <p>This program allows the user to create multiple clients. How do I allow an array to be equal to all these inputs? When I display the array the only thing that is shown is the last client added.</p>
  
  <pre><code>static String [] clients = new String[100];
  
  void getClient()
      {
          String input = new String (" ");
          for(int i = 0; i &lt; ccount; i++)
              clients[i] = input;
          {
          input = JOptionPane.showInputDialog("Enter client ID: ");
              while(checkClientID(input) == false)
              {   
                  input = JOptionPane.showInputDialog("Invalid! Only 9 digits allowed. Re-enter client ID: ");
              }//end while
          clientID = input;
          input = JOptionPane.showInputDialog("Enter client name: ");
              while(checkCname(input) == false)
              {   
                  input = JOptionPane.showInputDialog("Invalid! Only 50 alphabetical characters allowed! Re-enter client name: ");
              }//end while
          cname = input;
          input = JOptionPane.showInputDialog("Enter client address: ");
          caddress = input;
          input = JOptionPane.showInputDialog("Enter client email: ");
              while(checkCemail(input) == false)
              {   
                  input = JOptionPane.showInputDialog("Invalid! Must enter at least  one character before @ and .com at end, Re-enter email: ");
              }//end while 
          cemail = input;
          input = JOptionPane.showInputDialog("Enter monthly service fees: ");
              while(checkCfees(input) == false)
              {   
                  input = JOptionPane.showInputDialog("Invalid! Must enter real number with two decimal places, Re-enter monthly service fees: ");
              }//end while
          cfees = input;
          input = JOptionPane.showInputDialog("Enter Employee ID assigned to client: ");
          while(checkEmpID(input) == false)
          {   
              input = JOptionPane.showInputDialog("Invalid! Only 9 digits allowed. Re-enter employee ID: ");
          }//end while
          cempID = input;
          mainMenu();
          }//end for 
      }//end getClient
  </code></pre>