Java tutorial
//package com.java2s; /* * fb4j: Java API for Facebook * Copyright (C) 2007-2008 Biagio Miceli Jr, Cosimo Togna * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Full license may be found in LICENSE.txt or downloaded from * <http://www.gnu.org/licenses/>. fb4j documentation, updates and other * info can be found at <http://fb4j.sourceforge.net/> * * @version $Id$ */ public class Main { public static String join(long[] array) { return join(array, ","); } public static String join(long[] array, String seperator) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < array.length; i++) { if (i > 0) { sb.append(seperator); } sb.append(array[i]); } return sb.toString(); } }