A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
java 2
Prasanna Vijaya
Greenhorn
Joined: Oct 21, 2000
Posts: 5
posted
Oct 22, 2000 16:17:00
0
how to store commandline arguments in a
string
Allen Alchian
Ranch Hand
Joined: Oct 11, 2000
Posts: 83
posted
Oct 22, 2000 17:58:00
0
I do the following...
-----------
public static void main (String args[])
{
String myArg;
myArg = args[0];
----------
The first argument is args[0], the second is args[1], etc.
Does this answer your question?
Allen
I agree. Here's the link:
http://aspose.com/file-tools
subject: java 2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter