/** * a little Java application class just for playing * with command-line arguments * * @author Sharon Tuttle * @version 2015-09-02 */ public class TryMe { /** * this simply echoes its command-line * arguments to the screen, 1 per line * * @param args the command-line arguments to print to the screen */ public static void main(String[] args) { // played with BOTH styles of for-loops for // printing each command-line argument to // the screen -- // uncomment the one you wish to // try (and comment OUT the other...! 8-) ) //for (int i=0; i<args.length; i++) for (String arg: args) { //System.out.println(args[i]); System.out.println(arg); } } }