sreenath205
Programmer
class mainerror
{
public static void main(String[] args)
{
for(int i=0; i < args.length; i++)
{
System.out.println(args);
}
}
}
if we execute this programme with command line argument it has to print the same command line argument
eg
c:\>mainerror testing
output:
c:\>mainerror testing
testing
But if we supply command line argument as * it list all files in CURRENT DIRECTORY why is it so?
Ex:
D:\2k>java test *
file_id.diz
fms.2003-04-15.full.zip
s2k.hacking.exe
s2k.info.txt
ser2k71.exe
Serials2000.nfo
serialz updates and more.url
test.class
Any answer appreciated