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: how to search array elements present or not using command line argument in java

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to search array elements present or not using command line argument in java

    how to search array elements present or not using command line argument in java


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: how to search array elements present or not using command line argument in java

    The command line args are passed to the main() method in a String array. The search would use loops and if statements to see if any of them are in the array.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How to get the command line to function from Java code
    By summit45 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: August 24th, 2013, 01:19 AM
  2. Replies: 10
    Last Post: September 16th, 2011, 07:49 PM
  3. Command Line Argument - URGENT!
    By Rads23 in forum What's Wrong With My Code?
    Replies: 11
    Last Post: August 18th, 2011, 08:58 AM
  4. Run command line structure in Java
    By soheilz92 in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: April 20th, 2011, 02:26 AM
  5. [SOLVED] Command Line Argument Help
    By EmSaint in forum Loops & Control Statements
    Replies: 2
    Last Post: January 28th, 2010, 09:55 AM

Tags for this Thread