Ignore a line while reading a file in java
<p>I have some code to read the lines from  a file, I would like to recognize when the line starts or the fisrt character (not blank) is '<code>*</code>' and ignore it, so inside the while statement add something like </p>

<pre><code>if(line[0]=='*') 
   ignore that line
</code></pre>

<p>I have something like:  </p>

<pre><code>   input = new BufferedReader(new FileReader(new File(finaName)));
    String line = null;
    while ((line = input.readLine()) != null) {
    String[] words = line.split(" "); 
        .... 
    }
</code></pre>

<p>How to complete the code?</p>
