Here you can find the source of quoteIfString(Object... arguments)
private static Object[] quoteIfString(Object... arguments)
//package com.java2s; //License from project: Open Source License public class Main { private static Object[] quoteIfString(Object... arguments) { Object[] result = new Object[arguments.length]; for (int i = 0; i < arguments.length; i++) { result[i] = quoteIfString(arguments[i]); }//from w w w .jav a 2 s.c o m return result; } private static Object quoteIfString(Object argument) { Object result; if (argument instanceof String) { result = quote((String) argument); } else { result = argument; } return result; } private static String quote(String string) { return "\"" + string + "\""; } }