title: How could I determine 2D blocks of text from an input text file in Java?
body: <p>A text file is given for the computer to solve a puzzle problem.
  In a given text file, say </p>
  
  <pre><code>  b   bab    abba
   aa     a    baba    b     
  </code></pre>
  
  <p>The largest block of text is the "target puzzle", where all pieces of the puzzle are separated by white space. In the final result, the algorithm should be able to parse the "pieces" or the puzzle from the "target" puzzle. The largest block of text  is implicitly the target puzzle.</p>
  
  <p>How could I parse these pieces and puzzle, given the fact that they span over multiple lines? One could easily parse the separated blocks on one line, but how could I connect the parsed pieces of each line into a "block" object, or somethings similar. Right now I am working with 2D arrays, any help with this specific parsing problem is greatly appreciated.</p>