diff options
author | Ugnich Anton | 2013-07-16 04:07:15 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-07-16 04:07:15 +0700 |
commit | 378b014b82158d06a6ee986cb7522a04bc59f5bc (patch) | |
tree | cd59383a4281a18d7d4968075eeebbb1fe0bf4d3 /src/com/juick/server/Utils.java | |
parent | 1afa0e255d694840c77c19c1effed6c0d0a92f1f (diff) |
getUsersByName, getUsersByJID
Diffstat (limited to 'src/com/juick/server/Utils.java')
-rw-r--r-- | src/com/juick/server/Utils.java | 13 |
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 { |