Here you can find the source of quote(String text)
Parameter | Description |
---|---|
text | The message to format. |
public static String quote(String text)
//package com.java2s; //License from project: LGPL public class Main { /**//from w w w . j ava 2 s. co m * Puts a String text in quotes. * * @param text The message to format. * * @return String The text with the quotes around it. */ public static String quote(String text) { return "\"" + text + "\""; } }