Java String Array to String argsToString(String[] args, int start)

Here you can find the source of argsToString(String[] args, int start)

Description

args To String

License

Open Source License

Declaration

public static String argsToString(String[] args, int start) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String argsToString(String[] args, int start) {
        StringBuilder builder = new StringBuilder();
        for (int i = start; i < args.length;) {
            builder.append(args[i++]);/*from ww w. j a v a  2 s .com*/
            if (i < args.length) {
                builder.append(' ');
            } else {
                break;
            }
        }
        return builder.toString();
    }
}

Related

  1. argsToString(String args[], int minindex, int maxindex)
  2. argsToString(String separator, T... args)
  3. argsToString(String[] args)
  4. argsToString(String[] args, int startFrom)
  5. arr2str(String[] arr)
  6. arr2str(String[] arr, String sep)
  7. array2str(String[] array, String delim)