Java Array Concatenate concatArray(String string, String[] words)

Here you can find the source of concatArray(String string, String[] words)

Description

concat Array

License

Apache License

Declaration

public static String concatArray(String string, String[] words) 

Method Source Code

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

public class Main {
    public static String concatArray(String string, String[] words) {
        StringBuilder concat = new StringBuilder();
        for (int i = 0; i < words.length; i++) {
            concat.append(words[i] + " ");
        }/*from  w ww  .  j  a  v  a  2  s  .co  m*/
        return concat.toString().trim();
    }
}

Related

  1. concatArray(byte data1[], byte data2[])
  2. concatArray(byte[] old1, byte[] old2)
  3. concatArray(int[] src, String separator)
  4. concatArray(Object... objects)
  5. concatArray(Object[] arr1, Object newValue)
  6. concatArray(String[] array, int start)
  7. concatArray(String[] array, int start, String def)
  8. concatArray(String[] array, String glue)
  9. concatArray(T[] first, T[]... rest)