Java String Indent Format indent(final StringBuilder s, final int depth)

Here you can find the source of indent(final StringBuilder s, final int depth)

Description

indent

License

Open Source License

Declaration

private static void indent(final StringBuilder s, final int depth) 

Method Source Code

//package com.java2s;

public class Main {
    private static void indent(final StringBuilder s, final int depth) {
        for (int i = depth - 1; i >= 0; i--)
            s.append("  ");
    }/* w  ww.  j  a v  a 2  s. c  o  m*/
}

Related

  1. indent(final String s)
  2. indent(final String string, final String separator)
  3. indent(final StringBuffer buffer, final String text, final int indent)
  4. indent(final StringBuilder aSb, final String aIndentString)
  5. indent(final StringBuilder buf, int level)
  6. indent(final StringBuilder sb, final int indent)
  7. indent(int count)
  8. indent(int i, String s)
  9. indent(int indent)