Here you can find the source of argsToString(String[] args)
public static String argsToString(String[] args)
//package com.java2s; //License from project: Apache License public class Main { public static String argsToString(String[] args) { if (args == null || args.length == 0) { return ""; }//from w ww . j a v a2 s .com boolean firstTime = true; StringBuilder sb = new StringBuilder(); for (String s : args) { if (!firstTime) { sb.append(":"); } sb.append(s); firstTime = false; } return sb.toString(); } }