Finding minimum String length of all lines in a CSV and printing them : <p>So let's say I have a CSV file of random alphabets in columns for example's sake:</p>

<pre><code>a
wrrq
jt
pkto
b   
</code></pre>

<p>They are in String format and I want to be able to find the minimum String length in this CSV list. In the example given, the minimum being 1 (the maximum being 4). Then I want to print all the minimums in order, resulting in:</p>

<pre><code>a
b
</code></pre>

<p>This is my code that reads each line from the top and it's barely anything to a helpful guideline but I'm kind of stuck right now.</p>

<pre><code>    BufferedReader br = new BufferedReader(new FileReader("Example.csv"));
    while ((nextLine = br.readLine()) != null) {

    ...

    }
</code></pre>

<p>Is there a way to do this a simple way without using fancy 3rd party scripts. Maybe putting them into an array and then working from there perhaps(?) Keeping in mind that the minimum may not always be 1.</p>
