Java String Quote quote(String content)

Here you can find the source of quote(String content)

Description

quote

License

Apache License

Parameter

Parameter Description
content a parameter

Declaration

public static String quote(String content) 

Method Source Code

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

public class Main {
    /**//from   www . j av  a  2 s.  co  m
     * 
     * @param content
     * @return
     */
    public static String quote(String content) {
        StringBuffer sb = new StringBuffer();
        sb.append("\"");
        sb.append(content);
        sb.append("\"");

        return sb.toString();
    }
}

Related

  1. quote(final String value)
  2. quote(Object aObject)
  3. quote(Object s)
  4. quote(Object s)
  5. quote(Object value)
  6. quote(String content, String quoteMark)
  7. quote(String content, String quoteMark)
  8. quote(String entityName)
  9. quote(String filepath)