星期一, 12月 26, 2005

Lab 12-26-2005 (2)

Write a java program and run it at command lines. Input any parameter list and output the reverse list. For example, if you enter

java someProgram 1 3 5 4 6

the putput is

6 4 5 3 1

You program should be able to handle a
null parameter, i.e. no parameters.

11 則留言: