java.lang.NumberFormatException: For input string: "1"
<p>"out.txt" content is </p>

<blockquote>
  <p>1</p>
</blockquote>

<p>My JAVA code is like this.</p>

<pre><code>    int val=0;
    BufferedReader br = new BufferedReader(new FileReader("out.txt"));

    while(true) {
        String line = br.readLine();
        if (line==null) break;
        val=Integer.parseInt(line);
    }
    br.close();
</code></pre>

<p>and debugger says,</p>

<blockquote>
  <p>java.lang.NumberFormatException: For input string: "﻿1"</p>
</blockquote>

<p>i need to use 1 from "out.txt".
How can i use 1 as Integer?
Thank you for your attention :)</p>