Here you can find the source of indent(int count)
Parameter | Description |
---|---|
count | a parameter |
public static String indent(int count)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w . j a va2 s. co m*/ * Create an indentation of a given number of spaces. * @param count * @return a string made up of 'count' number of spaces */ public static String indent(int count) { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < count; i++) { buffer.append(" "); } return buffer.toString(); } }