/** * Basic Algorithms, V22.0310.003, Fall 1998 (Yap) * * This Hello World Program can compile and run in * the Windows environment as well as in Unix. * After compiling it, you can run it with any number of * command line arguments. For example, try this: * * % java Hello How about this? * */ public class Hello { public static void main (String args[]) { // Main message System.out.print("Hello, World!\n"); // Print command line arguments, one per line for (int i = 0; i < args.length ; i++ ) System.out.print(args[i]+"\n"); // Pause display until user hits return System.out.print("Hit a return to quit"); try {System.in.read();} catch (Exception e){}; } }