Java String Array Merge mergeStrings(Object... strings)

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

Description

merge Strings

License

Apache License

Declaration

public static String mergeStrings(Object... strings) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String mergeStrings(Object... strings) {
        StringBuilder sb = new StringBuilder(500);
        for (Object str : strings) {
            sb.append(str.toString());//ww w.jav  a  2  s .  c o m
        }
        return sb.toString();
    }
}

Related

  1. mergeInts(int[] values, String delimiter)
  2. mergeJoin(String sep, String[] a1, String[] a2)
  3. mergeJoin(String sep, String[] a1, String[] a2)
  4. mergeString(String currentValue, String newValue)
  5. mergeString(String[] str1, String[] str2)
  6. mergeStrings(String s1, String s2)
  7. mergeStrings(String[] str1, String str1Tag, String[] str2)
  8. mergeStringsFormatted(String[] strings, String spacer)