Last active
November 16, 2016 10:08
-
-
Save jb7959/f8680a58a37da90de00985a81387cc8c to your computer and use it in GitHub Desktop.
This method is for Statement Object to use like a Prepared Statement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String str = [1, 2, 3]; | |
str = str.replaceAll("\\[", "\"").replaceAll("\\]","\"").replaceAll("\\,","\"\\,").replaceAll(" ","\"").trim(); | |
//input : [1, 2, 3] | |
//output : "1","2","3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment