package com.juick.json; import java.util.ArrayList; import java.util.Iterator; /** * * @author ugnich */ public class Messages { public static String arrayToString(ArrayList messages) { String json = "["; Iterator i = messages.iterator(); while (i.hasNext()) { com.juick.Message m = i.next(); if (json.length() > 1) { json += ","; } json += Message.toJSON(m).toString(); } json += "]"; return json; } }