Code example for Formatter

Methods: format

0
            Locale l, String format, Object... args) {
        if (format == null) {
            throw new NullPointerException("format");
        } 
 
        formatter.format(l, format, args);
        flush(false); 
        return this;
    } 
 
    @Override 
    public synchronized void print(char[] charArray) {
        builder.append(charArray);
        flush(false); 
    } 
 
    @Override 
    public synchronized void print(char ch) {
        builder.append(ch);
        if (ch == '\n') {
            flush(false);