Java String Indent Format indent(int numSpaces)

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

Description

indent

License

Open Source License

Declaration

public static void indent(int numSpaces) 

Method Source Code

//package com.java2s;
/* Copyright (c) 2006, Sriram Srinivasan
 *
 * You may distribute this software under the terms of the license 
 * specified in the file "License"/*w w w.j  a v a2 s .co m*/
 */

public class Main {
    public static String indentStr = "";
    public static String spaces = "                                        ";

    public static void indent(int numSpaces) {
        indentWith(spaces.substring(0, numSpaces));
    }

    public static void indentWith(String s) {
        indentStr = indentStr + s;
    }
}

Related

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