Hello,
Assume this is my main method:
public class mycode { public static void main(String[] arguments) {
body; } }
Is there a way to find out how many arguments were passed on from the command line when called?
For example,
java mycode a b c d
4 arguments were passed.
thanks
Assume this is my main method:
public class mycode { public static void main(String[] arguments) {
body; } }
Is there a way to find out how many arguments were passed on from the command line when called?
For example,
java mycode a b c d
4 arguments were passed.
thanks