Code example for Console

Methods: readLine

0
    return console.reader();
  } 
 
  @Override 
  public String readLine() throws ConsoleException {
    return console.readLine();
  } 
 
  @Override 
  public char[] readPassword() throws ConsoleException { 
    return console.readPassword();
  } 
 
  @Override 
  public PrintWriter writer() throws ConsoleException {
    return console.writer();
  } 
 
@Override 
public String readLine(String s) throws ConsoleException {
Connect your IDE to all the code out there  Get Codota for Java