Command line arguments in java

class P_08_CLA {
public static void main(String[] args) {
for (int i=0;i<args.length ;i++ ) {
System.out.println("[args] = "+i+" : "+args[i]);
}
}
}

Output



Comments

Popular posts from this blog

Example of Synopsis in LaTeX

Program to display the different colors using the switch statement.

Program to illustrate the concept of templates.