Java String Double Quote doubleQuote(String data)

Here you can find the source of doubleQuote(String data)

Description

Double quotes a string

License

Open Source License

Parameter

Parameter Description
data string to quote

Return

double quoted string

Declaration

public static String doubleQuote(String data) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from  ww w . ja  va  2  s.  co  m*/
     * Double quotes a string
     *
     * @param data string to quote
     *
     * @return double quoted string
     */
    public static String doubleQuote(String data) {
        return "\"" + data + "\"";
    }
}

Related

  1. doubleQuote(Object thing)
  2. doubleQuote(String input)
  3. doubleQuote(String message)
  4. doubleQuote(String s)
  5. doubleQuote(String s)