title: How do i input a string from a buffered reader?
body: <p>Im used too using Scanner mainly and want too try using a buffered reader:
  heres what i have so far</p>
  
  <pre><code>import java.util.*;
  import java.io.*;
  public class IceCreamCone 
  {
  // variables
  String flavour;
  int numScoops;
  Scanner flavourIceCream = new Scanner(System.in);
  
  // constructor
  public IceCreamCone()
  {
  
  }
  // methods
  public String getFlavour() throws IOexception 
  {
      try{
  
      BufferedReader keyboardInput;
      keyboardInput = new BufferedReader(new InputStreamReader(System.in));
      System.out.println(" please enter your flavour ice cream");
      flavour  =  keyboardInput.readLine();
      return keyboardInput.readLine();
      }
      catch (IOexception e)
      {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>im fairly sure  to get an int you can say </p>
  
  <pre><code>Integer.parseInt(keyboardInput.readLine());
  </code></pre>
  
  <p>but what do i do if i want a String</p>