The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

commandline argument

Posted by viju on March 08, 2001 at 9:14 AM

*.* when specified as an argument it expands to a list of files in that directory. This is an Operting System feature.Since ur printing only the first element in this list ( args[0]) your able to see only the first name in this list


> all dears,
> what wiil will happen when we use *.* as an argument and try to print it like System.out.println(args{0}}.I get the first file name in class' directory. what is reason behind this..?
> reply asap
> with regrds lavaraj






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us