Code example for LineReader

Methods: readLine

0
      lineReader = new LineReader(new StringReader(str));
    } 
 
    String readLine() {
      try { 
        return this.lineReader.readLine();
      } catch (IOException e) {
        throw new RuntimeException(e);
      } 
    } 
  } 
 
  @Override 
  public String toString() {
    return name;
  } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java