Here you can find the source of quote(final String str)
static String quote(final String str)
//package com.java2s; //License from project: Open Source License public class Main { static String quote(final String str) { return "\"" + str + "\""; }//from www . j a v a2 s .co m }