Here you can find the source of indent(int n)
public static void indent(int n)
//package com.java2s; //License from project: Open Source License public class Main { public static void indent(int n) { printNChars(' ', n); }//w w w. j ava 2s . c om public static void printNChars(char ch, int n) { if (n <= 0) { return; } while (n-- > 0) { System.out.print(ch); } } }