aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/server/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/juick/server/Utils.java')
-rw-r--r--src/com/juick/server/Utils.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/juick/server/Utils.java b/src/com/juick/server/Utils.java
index 997c4f32..d37931d0 100644
--- a/src/com/juick/server/Utils.java
+++ b/src/com/juick/server/Utils.java
@@ -28,7 +28,7 @@ import java.util.ArrayList;
*/
public class Utils {
- public static String convertArray2String(ArrayList<Integer> mids) {
+ public static String convertArrayInt2String(ArrayList<Integer> mids) {
String q = "";
for (int i = 0; i < mids.size(); i++) {
if (i > 0) {
@@ -39,6 +39,17 @@ public class Utils {
return q;
}
+ public static String convertArrayString2String(ArrayList<String> unames) {
+ String q = "";
+ for (int i = 0; i < unames.size(); i++) {
+ if (i > 0) {
+ q += ",";
+ }
+ q += "\"" + unames.get(i) + "\"";
+ }
+ return q;
+ }
+
public static void finishSQL(ResultSet rs, Statement stmt) {
if (rs != null) {
try {