Java String Indent Format indent(StringBuilder builder, int indent)

Here you can find the source of indent(StringBuilder builder, int indent)

Description

indent

License

LGPL

Declaration

private static void indent(StringBuilder builder, int indent) 

Method Source Code

//package com.java2s;
// Metawidget (licensed under LGPL)

public class Main {
    private static void indent(StringBuilder builder, int indent) {

        for (int loop = 0; loop < indent; loop++) {
            builder.append("   ");
        }// w  ww  . j  a v  a2s  . c  om
    }
}

Related

  1. indent(StringBuffer buffer, int depth)
  2. indent(StringBuffer sb, int indentLevel)
  3. indent(StringBuilder b, int i)
  4. indent(StringBuilder buffer, int d)
  5. indent(StringBuilder builder, int indent)
  6. indent(StringBuilder builder, int times)
  7. indent(StringBuilder sb, int indent)
  8. indent(StringBuilder sb, int indent)
  9. indent2(String text, String indent)