This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java 2" Watch "java 2" New topic

java 2

Prasanna Vijaya

Joined: Oct 21, 2000
Posts: 5
how to store commandline arguments in a string
Allen Alchian
Ranch Hand

Joined: Oct 11, 2000
Posts: 83
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?

I agree. Here's the link:
subject: java 2
jQuery in Action, 3rd edition