Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Multi-Valued Command Line Arguments

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Multi-Valued Command Line Arguments

    Hello friends,

    I got a query about passing multi valued command line arguments.
    I'll give the arguments to be passed for clear understanding of the question

    arguments are as follows:

    1)parameter 1
    2)parameter 2
    3)parameter 3
    4)parameter 4 which actually consists of values as follows: (multi-valued)
    Column1 Column2 Column3 Column4 Column5
    2 Y Some value 3 N
    1 N Null 4 Y
    3 N Null 1 Y
    4 Y Some value 2 N
    so i am looking for ways to handle such arguments from command line,
    any suggestion and help is appreciated.

    Thanks
    Joe


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Multi-Valued Command Line Arguments

    From the main method parameters:
    args[0] = parameter1
    args[1] = parameter2
    args[2] = parameter3
    args[3] = parameter4-column1
    args[4] = parameter4-column2
    ...

Similar Threads

  1. Multi-dimension ArrayList example
    By helloworld922 in forum Java Programming Tutorials
    Replies: 1
    Last Post: February 3rd, 2010, 11:01 AM
  2. opening Telnet Command Session
    By voyager in forum Java Networking
    Replies: 3
    Last Post: June 23rd, 2009, 10:34 AM
  3. How to Send command line arguments in Eclipse?
    By JavaPF in forum Java JDK & IDE Tutorials
    Replies: 0
    Last Post: April 23rd, 2009, 11:37 AM
  4. Reading a file line by line using the Scanner class
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: April 17th, 2009, 07:34 AM
  5. How to Read a file line by line using BufferedReader?
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: May 19th, 2008, 06:32 AM