Java String Indent Format indent(int n)

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

Description

indent

License

Open Source License

Declaration

public static void indent(int n) 

Method Source Code

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

public class Main {

    public static void indent(int n) {
        printNChars(' ', n);
    }//w  w w. j ava 2s  . c om

    public static void printNChars(char ch, int n) {
        if (n <= 0) {
            return;
        }
        while (n-- > 0) {
            System.out.print(ch);
        }
    }
}

Related

  1. indent(int indentLevel)
  2. indent(int level)
  3. indent(int level)
  4. indent(int level)
  5. indent(int level)
  6. indent(int nb)
  7. indent(int nSpaces)
  8. indent(int number)
  9. indent(int numSpaces)