public class Example{
public static void main(String args[]){
Integer intObj=Integer.valueOf(args[args.length-1]);
int i=intObj.intValue();
if(args.length>1)
System.out.println(i);
if(args.length>0)
System.out.println(i-1);
else
System.out.println(i-2);
}
}
A、打印输出2
B、打印输出1
C、打印输出0
D、打印输出Example-1
E、打印输出Example
B