Justifying Text Java
<p>I came across a question in an old computer olympiad where you are required to justify text in java.</p>

<p>Bassically, you are given a sentence that stays the same throughout the program for example:</p>

<blockquote>
  <p>The existence of religion in all of the world's major societies is the result of the process of Darwinian natural selection. Religion is a set of beliefs made by the elders in a society to enforce the moral values necessary to preserve the society which exploits a belief and supernatural powers to enforce “the rules.” </p>
</blockquote>

<p>The user inputs the column width (how many characters should fit on a line) and then the text is outputted as such.</p>

<p>For example: column width 13</p>

<blockquote>
  <p>The existence</p>
  
  <p>rest of text</p>
</blockquote>
