title: How to split the strings in a file and read them?
body: <p>I have a file with information in it. It looks like:</p>
  
  <pre><code>    Michael 19 180 Miami
      George 25 176 Washington
      William 43 188 Seattle
  </code></pre>
  
  <p>I want to split the lines and strings and read them. I want it to look like:</p>
  
  <pre><code>    Michael
      19
      180
      Miami
      George
      ...
  </code></pre>
  
  <p>i used a code like this:</p>
  
  <pre><code>    BufferedReader in = null;
      String read;
      int linenum;
      try{
          in = new BufferedReader(new FileReader("fileeditor.txt")); 
      }
      catch (FileNotFoundException e) {System.out.println("There was a problem: " + e);}
      try{
          for (linenum = 0; linenum&lt;100; linenum++){
              read = in.readLine();
              if(read == null){} 
              else{
                  String[] splited = read.split("\\s+");
                  System.out.println(splited[linenum]);
             }
         }
      }
      catch (IOException e) {System.out.println("There was a problem: " + e);} 
  }
  </code></pre>
  
  <p>What this gave me was </p>
  
  <pre><code>    Michael
      25
      188
  </code></pre>
  
  <p>I think its probably an issue with my for loop but I'm not very advanced in programming and I'll appreciate help. Thanks.</p>