Here you can find the source of QuoteString(String source)
Parameter | Description |
---|---|
source | The source string. |
public static String QuoteString(String source)
//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 + '"'; } }