Java String Indent Format indent()

Here you can find the source of indent()

Description

indent

License

Open Source License

Declaration

public static String indent() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int loggingIndentation = 0;

    public static String indent() {
        String partial = "";
        for (int i = 0; i < loggingIndentation; i++)
            partial = partial + "  ";
        return partial;
    }/*from  w w w.  j  a  v a2  s.c om*/
}

Related

  1. indent(char thr, int level)
  2. indent(CharSequence input)
  3. indent(final int depth, final int indentWidth, final StringBuilder buf)
  4. indent(final int i, StringBuffer b)