Assuming your main method starts as follows.. public static void main(String args[]) The length of the args array should give you what you need. System.out.println(args.length). Bosun
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
Do not threaten THIS beaver! Not even with this tiny ad:
a bit of art, as a gift, the permaculture playing cards