title: compilation error: identifier expected
body: <pre><code>import java.io.*;
  
  public class details
  {
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      System.out.println("What is your name?");
      String name = in.readLine(); ;
      System.out.println("Hello " + name);
  }
  </code></pre>
  
  <p>my problem with this code is that i get " identifier expected " when compiling..
  can anyone help me on what to do?
  or better, can anyone provide the code that would use BufferedReader to prompt the name, address, and age then finally would display the output..</p>
  
  <p>thanks!!</p>