home *** CD-ROM | disk | FTP | other *** search
/ Java Certification Exam Guide / McGrawwHill-JavaCertificationExamGuide.iso / pc / Web Links and Code / ans / chap16 / exer1601 / Reverse.java
Encoding:
Java Source  |  1997-04-20  |  273 b   |  10 lines

  1. class Reverse {
  2.    public static void main(String[] args) {
  3.       System.out.println("The parameters in reverse order are:");
  4.       for (int i = args.length - 1; i >= 0; i--) {
  5.          System.out.print(args[i] + " ");
  6.       }
  7.       System.out.println("");
  8.    }
  9. }
  10.