Lab 12-26-2005 (2)
public class ttt
{
public static void main(String [] args)
{
int i;
if(args.length == 0)
{
System.out.println("No input number.");
}
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 number.");
}
else
{
System.out.println("Output:");
for(i=(args.length-1) ; i >= 0 ; i--)
{
System.out.print(args[i]+" ");
}
}
}
0 Comments:
張貼留言
<< Home