strange, i just bumped into this question on Java FAQ
look at this code, and you have to run it like this : java test *
class test{
public static void main(String args[]){
for (int i = 0;i < args.length; i++) {
System.out.println("File " + i
+ ":" + args[i]);
}
if (args.length<=0) {
System.out.println("No files!");
}
}
}
you know what it does? it lists all the files in the current directory!
i have to investigate this, i need to know the exact reason.
is it just a windows-thing or is it a java-thing?
if anyone has an explanation before i come up with one, i will be glad to hear it :)
blog comments powered by Disqus