Here you can find the source of quote(String content)
Parameter | Description |
---|---|
content | a parameter |
public static String quote(String content)
//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(); } }