Here you can find the source of quoteString(String s)
public static String quoteString(String s)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { public static String quoteString(String s) { if (s == null || s.equals("null") == true) { return null; }//from w w w . j a va 2 s . co m return "\"" + s + "\""; } }