Java String Quote QuoteString(String source)

Here you can find the source of QuoteString(String source)

Description

Quotes the string.

License

Open Source License

Parameter

Parameter Description
source The source string.

Return

The quoted string.

Declaration

public static String QuoteString(String source) 

Method Source Code

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

public class Main {
    /**//from   w  w w  .j ava 2s  . c om
     * Quotes the string.
     * 
     * @param source
     *            The source string.
     * @return The quoted string.
     */
    public static String QuoteString(String source) {
        return '"' + source + '"';
    }
}

Related

  1. quoteString(String s)
  2. quoteString(String s)
  3. quoteString(String s)
  4. quoteString(String s)
  5. quoteString(String s)
  6. quoteString(String source, char quote)
  7. quoteString(String src)
  8. quoteString(String str)
  9. quoteString(String string)