title: How to split different data types in String[] in Java
body: <p>I would appreciate if someone could help me with my school project.
  I have a txt file with names and phone numbers (ex. John Smith 1123456789). I need Java to read the file and load it into two separate array strings: one with first/last names and another with phone numbers. Please give me advise on how to do it right. Thanks a lot in advance.</p>
  
  <pre><code>         String book;
           FileReader reader;
           BufferedReader buffer;
           String line;
           String[] list;
  
      try {
          reader = new FileReader(book);
          buffer = new BufferedReader(reader);
          list = new String[50];
          int x = 0;
          line = buffer.readLine();
          while (line != null){
              list[x] = line;
              line = buffer.readLine();
              x++;
          }
          buffer.close();
      } catch(FileNotFoundException e)
  </code></pre>