Lab 12-26-2005 (2)
package welcome;
public class someProgram
{
public static void main(String[] arg)
{
int i;
if( arg.length == 0 )
{
System.out.println("ERROR");
System.exit(0);
}
for( i=arg.length;i>0;i--)
{
System.out.println( arg[i] );}
System.out.println("The length of parameter is " + arg.length);
}
}
0 Comments:
張貼留言
<< Home