Here you can find the source of indent(int indent, int tab, String string)
Parameter | Description |
---|---|
indent | a parameter |
tab | a parameter |
string | a parameter |
public static String indent(int indent, int tab, String string)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w .j a va2 s .co m*/ * @param indent * @param tab * @param string * @return */ /*@ @ public behavior @*/ public static String indent(int indent, int tab, String string) { StringBuffer result = new StringBuffer(); for (int i = 0; i < indent * tab; i++) { result.append(' '); } result.append(string); return result.toString(); } }