Here you can find the source of getCommandStr(List
public static String getCommandStr(List<String> commandList)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static String getCommandStr(List<String> commandList) { String s = ""; for (String _command : commandList) { s += _command + " "; }//from w w w . j a v a 2s. com return s; } }