Code example for Scanner

Methods: hasNextLine

0
        return symbolLine;
    } 
 
    @Override 
    public boolean hasNextLine() { 
        return _scanner.hasNextLine();
    } 
 
    private void getRidOfLineSpacing() { 
        for (int i = 0; i < LINE_SPACING && hasNextLine(); i++)
            _scanner.nextLine();
    } 
 
    private String readLine() {
        String symbolLine = "";
        for (int i = 0; i < SYMBOL_HEIGHT && hasNextLine(); i++) {
            symbolLine += _scanner.nextLine() + '\n';
            System.out.println(symbolLine);
        } 
        return symbolLine;
    }