• Post Reply Bookmark Topic Watch Topic
  • New Topic

Command line arguments

 
Lalit K Kumar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
can anyone tell me how to get command line arguments in the form of string array in java. thanks in advance.
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The command line arguments are already available as a String array inside the main() method. If you look at the main method you can see that it takes a String array as an argument. It contains the command line arguments passed.

[ February 19, 2004: Message edited by: Mani Ram ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!