Java String Indent Format indent(final int size)

Here you can find the source of indent(final int size)

Description

indent

License

Apache License

Declaration

public static final String indent(final int size) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final String indent(final int size) {
        String indent = "";
        for (int i = 1; i <= size; i++) {
            indent += " ";
        }// w  w  w.j  a v a2 s .c om
        return indent;
    }
}

Related

  1. indent(CharSequence input)
  2. indent(final int depth, final int indentWidth, final StringBuilder buf)
  3. indent(final int i, StringBuffer b)
  4. indent(final int indent)
  5. indent(final int indents)
  6. indent(final String s)
  7. indent(final String string, final String separator)
  8. indent(final StringBuffer buffer, final String text, final int indent)
  9. indent(final StringBuilder aSb, final String aIndentString)