Creates a string that contains the same value as the specified string and can be put into a compilable quoted string.
public static String quotedString( char c )
public static String quotedString( String s )
public static String quotedString( String s, String quote )
c
The character to quote.
s
The string to quote.
quote
The optional character to quote the string with. This character is placed before and after the contents of the resulting string.
Returns the quoted string.
A character will be placed before and after the contents of the resulting string.