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

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

Description

indent

License

Open Source License

Declaration

private static StringBuilder indent(StringBuilder sb, int indent) 

Method Source Code

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

public class Main {
    private static StringBuilder indent(StringBuilder sb, int indent) {
        for (int i = 0; i < indent; ++i)
            sb.append(' ');
        return sb;
    }/*  ww  w .j  a  v  a2s  . c om*/
}

Related

  1. indent(StringBuilder b, int i)
  2. indent(StringBuilder buffer, int d)
  3. indent(StringBuilder builder, int indent)
  4. indent(StringBuilder builder, int indent)
  5. indent(StringBuilder builder, int times)
  6. indent(StringBuilder sb, int indent)
  7. indent2(String text, String indent)
  8. indentAllLines(String s, String indent)
  9. indentation(int howMany)