Here you can find the source of quote(String value)
public static String quote(String value)
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 Boeing./*from w w w . j a v a2s . com*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Boeing - initial API and implementation *******************************************************************************/ public class Main { public static String quote(String value) { String toReturn = value; if (value != null) { StringBuilder builder = new StringBuilder(); builder.append("\""); builder.append(value); builder.append("\""); toReturn = builder.toString(); } return toReturn; } }