When people use the term fully-qualified class name in the Java world, they mean the class name with its package name prepended.
For example if I had the class HelloWorld:
Class: HelloWorld
Package: com.blogger.nofoe
Fully-qualified name: com.blogger.nofoe.HelloWorld
Note: The naming convention for packages in java goes {domain extension}.{domain name}.{project name}
Monday, July 14, 2008
java main print out args - snippet
Code to print out all arguments being passed to the main method:
public static void main(String[] args) {
//print out arguments
for (int i = 0; i < args.length; i++) {
System.out.print("args["+i+"]: " + args[i] + "\n");
}
}
Subscribe to:
Posts (Atom)