Java String Indent Format indent(int number)

Here you can find the source of indent(int number)

Description

indent

License

Apache License

Declaration

private static String indent(int number) 

Method Source Code

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

public class Main {

    private static String SPACE = "   ";

    private static String indent(int number) {
        StringBuffer result = new StringBuffer();
        for (int i = 0; i < number; i++) {
            result.append(SPACE);/*  www  .  j av  a2s.c o m*/
        }
        return result.toString();
    }
}

Related

  1. indent(int level)
  2. indent(int level)
  3. indent(int n)
  4. indent(int nb)
  5. indent(int nSpaces)
  6. indent(int numSpaces)
  7. indent(int numSpaces)
  8. indent(int tabCount)
  9. indent(String in)