Here you can find the source of argsToString(String[] args, int start)
public static String argsToString(String[] args, int start)
//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(); } }