for (int i=0; i<args.length; i++) { System.out.print(args[i] + " "); } System.out.println(""); // end with newline
new EchoArgv().func(args);