Here you can find the source of indent(int numSpaces)
public static void indent(int numSpaces)
//package com.java2s; /* Copyright (c) 2006, Sriram Srinivasan * * You may distribute this software under the terms of the license * specified in the file "License"/*w w w.j a v a2 s .co m*/ */ public class Main { public static String indentStr = ""; public static String spaces = " "; public static void indent(int numSpaces) { indentWith(spaces.substring(0, numSpaces)); } public static void indentWith(String s) { indentStr = indentStr + s; } }