static String concatCommand(String[] command){
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < command.length; i++) {
    if (i != 0) {
      sb.append(" ");
    }
    sb.append(command[i]);
  }
  return sb.toString();
}

static String concatCommand ( String [ ] command ) { StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < command . length ; i ++ ) { if ( i != 0 ) { sb . append ( " " ) ; } sb . append ( command [ i ] ) ; } return sb . toString ( ) ; }
concats a command by introducing whitespaces between the array elements .
