Java String Indent Format indent(String s)

Here you can find the source of indent(String s)

Description

indent

License

GNU General Public License

Declaration

static String indent(String s) 

Method Source Code

//package com.java2s;

public class Main {
    static String indent(String s) {
        return "    " + s.trim().replace("\n", "\n    ");
    }//from  ww  w.j  a  v  a 2s . c o m
}

Related

  1. indent(String msg, int size)
  2. indent(String original, int spaces)
  3. indent(String s)
  4. indent(String s)
  5. indent(String s)
  6. indent(String s, int numBlanks)
  7. indent(String str)
  8. indent(String str, String indent)
  9. indent(String string)