Class Reverse

java.lang.Object
  extended byReverse

public class Reverse
extends Object

Reverse the order of lines entered from standard input.


Constructor Summary
Reverse()
           
 
Method Summary
static void main(String[] args)
          Read lines typed at the terminal until end-of-file, saving them in an ArrayList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reverse

public Reverse()
Method Detail

main

public static void main(String[] args)
Read lines typed at the terminal until end-of-file, saving them in an ArrayList. Then print the lines in reverse order.