LAB12-26 2005(2)
public class program{
public static void main(String [] args){
int i;if(args.length == 0){
System.out.println("No input numbers.");
}else
{
System.out.println("Output:");
for(i=(args.length-1) ; i >= 0 ; i--){
System.out.print(args[i]+" ");}}}}
public static void main(String [] args){
int i;if(args.length == 0){
System.out.println("No input numbers.");
}else
{
System.out.println("Output:");
for(i=(args.length-1) ; i >= 0 ; i--){
System.out.print(args[i]+" ");}}}}
0 Comments:
張貼留言
<< Home