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

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

Description

args To String

License

Apache License

Declaration

public static String argsToString(String args[], int minindex, int maxindex) 

Method Source Code

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

public class Main {
    public static String argsToString(String args[], int minindex, int maxindex) {
        StringBuilder sb = new StringBuilder();
        for (int i = minindex; i < maxindex; i++) {
            sb.append(args[i]);// w ww  . ja  va  2 s .  c  o  m
            sb.append(" ");
        }
        return sb.toString();
    }
}

Related

  1. argsToString(String separator, T... args)
  2. argsToString(String[] args)
  3. argsToString(String[] args, int start)
  4. argsToString(String[] args, int startFrom)