Here you can find the source of indent(final int indents)
public static String indent(final int indents)
//package com.java2s; //License from project: Open Source License public class Main { public static String indent(final int indents) { return indent(indents, 4); }/*from ww w . j av a2s.c o m*/ public static String indent(final int indents, final int size) { StringBuilder indent = new StringBuilder(indents * size); for (int i = 0; i < indents * size; i++) indent.append(' '); return indent.toString(); } public static String indent(final int indents, final int size, final String message) { return indent(indents, size) + message; } }