Java String Array Combine combineStrings(Object... strings)

Here you can find the source of combineStrings(Object... strings)

Description

combine Strings

License

Open Source License

Declaration

public static String combineStrings(Object... strings) 

Method Source Code

//package com.java2s;
/**/* ww  w  .  ja va  2  s  . com*/
 * Tysan Clan Website
 * Copyright (C) 2008-2013 Jeroen Steenbeeke and Ties van de Ven
 *
 * 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

public class Main {
    public static String combineStrings(Object... strings) {
        StringBuilder builder = new StringBuilder();
        for (Object string : strings) {
            builder.append(string);
        }

        return builder.toString();
    }
}

Related

  1. combineSplit(int startIndex, String[] string, String separator)
  2. combineSplit(int startIndex, String[] string, String separator)
  3. combineSplit(int startIndex, String[] string, String separator)
  4. combineString(String[] strArr, String glue)
  5. combineStringArray(String[] array, String delim)
  6. combineStrings(Object[] list)
  7. combineStrings(String[] strings)