Here you can find the source of quote(String text)
public static String quote(String text)
//package com.java2s; //License from project: Apache License public class Main { public static String quote(String text) { return "\"" + text + "\""; }// ww w . j a v a 2 s.c o m public static String quote(Object object) { return quote(nullSafeToString(object)); } public static String nullSafeToString(Object object) { if (object == null) { return null; } return object.toString(); } }