String text =""; for (int loopIndex = 0; loopIndex <args.length; loopIndex++){ text += args[loopIndex] + " "; } System.out.println(text);