Java Array to String arrayToString(String[] arr, String expr)

Here you can find the source of arrayToString(String[] arr, String expr)

Description

array To String

License

LGPL

Declaration

public static String arrayToString(String[] arr, String expr) 

Method Source Code

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

public class Main {

    public static String arrayToString(String[] arr, String expr) {
        String strInfo = "";
        if (arr != null && arr.length > 0) {
            StringBuffer sf = new StringBuffer();
            for (String str : arr) {
                sf.append(str);//from w  w w  . ja va  2  s . c o m
                sf.append(expr);
            }
            strInfo = sf.substring(0, sf.length() - 1);
        }
        return strInfo;
    }
}

Related

  1. arrayToString(String values[])
  2. arrayToString(String[] a, String delim)
  3. arrayToString(String[] a, String separator)
  4. arrayToString(String[] args, String delimiter)
  5. arrayToString(String[] arr)
  6. arrayToString(String[] array)
  7. arrayToString(String[] array)
  8. arrayToString(String[] array)
  9. arrayToString(String[] array)