title: string tokenizer stopping after first line
body: <p>I have a text file I am trying to break up with string tokenizer. Here is a few lines of the text file:</p>
  
  <pre><code>Mary Smith 1 
  James Johnson 2 
  Patricia Williams 3 
  </code></pre>
  
  <p>I am trying to break up into first name, last name and Customer ID. </p>
  
  <p>I have so far been able to do that but it stops after mary smith. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>  public static void createCustomerList(BufferedReader infileCust,
              CustomerList customerList) throws IOException
  {    
  
  
              String  firstName;
              String  lastName;
              int  custId;
  
  
              //take first line of strings before breaking them up to first last and cust ID
              String StringToBreak = infileCust.readLine();
              //split up the string with string tokenizer
              StringTokenizer st = new StringTokenizer(StringToBreak);
  
              firstName = st.nextToken();
  
              while(st.hasMoreElements())
              {
              lastName =  st.nextToken();
              custId = Integer.parseInt(st.nextToken());
              CustomerElement CustomerObject = new CustomerElement();
              CustomerObject.setCustInfo(firstName,lastName,custId);
              customerList.addToList(CustomerObject);
  
              }
  
  
      }
  </code></pre>