For example
public static void main(String[] args) {
int count = 0;
for (String s: args) {
System.out.println(s);
count++;
}
}
is there some way of doing something like
int count = args.length()? or args.size()?
It would be:
int count = args.length;