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 3 of 3

Thread: how to find 2nd largest array if array values like{10,20,92,81,92,34}

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to find 2nd largest array if array values like{10,20,92,81,92,34}

    how to find 2nd largest array if array values like{10,20,92,81,92,34}

    --- Update ---

    hi


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: how to find 2nd largest array if array values like{10,20,92,81,92,34}

    Make an effort, and then we can help. And I believe you mean to find the second (or next) largest element of an array of values. Are you allowed to sort the array or use Arrays methods?

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: how to find 2nd largest array if array values like{10,20,92,81,92,34}

    Also posted at: how to find 2nd largest array if array values like{10,20,92,81,92,34}
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Largest object in an array of objects
    By Noct in forum Java Theory & Questions
    Replies: 2
    Last Post: May 16th, 2013, 12:49 AM
  2. largest object in an array
    By melek in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 15th, 2013, 10:43 PM
  3. Finding the largest object in an array
    By ashl7 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 12th, 2013, 06:57 PM
  4. compile errors when creating a 2nd array the same size as 1st array
    By javaiscool in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 26th, 2013, 09:35 PM
  5. 3x3 array find largest number
    By joecan2010 in forum Loops & Control Statements
    Replies: 1
    Last Post: November 27th, 2012, 11:56 PM