Java String Indent Format indent(int nSpaces)

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

Description

For tree dumper.

License

Open Source License

Declaration

public static String indent(int nSpaces) 

Method Source Code

//package com.java2s;
/*-//from  w w  w.j a  va 2  s  . c  o  m
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2002-2010 Oracle.  All rights reserved.
 *
 */

public class Main {
    static private final String SPACES = "                                " + "                                "
            + "                                " + "                                ";

    /**
     * For tree dumper.
     */
    public static String indent(int nSpaces) {
        return SPACES.substring(0, nSpaces);
    }
}

Related

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