Class Reverse
java.lang.Object
Reverse
- public class Reverse
- extends Object
Reverse the order of lines entered from standard input.
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 |
Reverse
public Reverse()
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.