For example,
String x= "ABC";
Which is the best way to convert ABC to 'ABC' ?
You can use String inner StringBuilder like
String
StringBuilder
sb.append(String.format("'%s'", variable));