Java - Command Line Arguments
Examine the following Java program snippet:
What is the main issue with this code regarding command line arguments?
public class Sample {
public static void main(String arg) {
System.out.println(arg[0]);
}
}What is the main issue with this code regarding command line arguments?
