title: BufferedReader error in Fibonacci sequence in Java
body: <p>I am new to Java, coming from a C background. While trying to implement a Fibonacci Sequence,I received the following error: </p>
  
  <blockquote>
  <pre><code> error: cannot find symbol
      n = Integer.parseInt(br.readline());
                             ^
   symbol:   method readline()
   location: variable br of type BufferedReader
  </code></pre>
  </blockquote>
  
  <p>The program is as follows :</p>
  
  <pre><code>import java.io.*;
  
  public class fibonacci
  {
  public static void main(String args[])throws IOException
  {
      int n;
      InputStreamReader read = new InputStreamReader(System.in);
      BufferedReader br = new BufferedReader(read);
  
      System.out.println("enter the value of n");
      n = Integer.parseInt(br.readline());
  
  int fib[];
      fib[1]=1;
      fib[2]=1;
      for(int i=3; i&lt;=n; i++)
      {
          fib[i] = fib[i-1] + fib[i-2] ;
      }
  
      System.out.println("the"+n+"th fibonacci term is "+fib[n]);
  }
  }
  </code></pre>
  
  <p>Kindly help.</p>