Hi guys, I'm learning Java an have a question concerning arrays. Say I have a function:
public static void main(String[] args) .......
How do I check the length of the array args? I have tried using Array.getLength(args), but javac tell me that it can't resolve the symbol .getLength. Or am I just nuts?
public static void main(String[] args) .......
How do I check the length of the array args? I have tried using Array.getLength(args), but javac tell me that it can't resolve the symbol .getLength. Or am I just nuts?