Here you can find the source of argsToString(String[] args, int startFrom)
public static String argsToString(String[] args, int startFrom)
//package com.java2s; /**/*from ww w. j a v a 2 s . c o m*/ * This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 * International License. http://creativecommons.org/licenses/by-nd/4.0/ * * @author Wruczek */ public class Main { public static String argsToString(String[] args, int startFrom) { if (args.length == 0) { return ""; } String ret = ""; for (int i = startFrom; i < args.length; i++) { ret += args[i] + " "; } return ret.substring(0, ret.length() - 1); } }