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.


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

Results 1 to 2 of 2

Thread: Array elements comparison

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

    Default Array elements comparison

    I have arrays of Length(L) , width(W) and Height(H) of same size(in length).
    Here L , W and H are entered by user.
    Eg:- Assuming size as 5.
    Therefore ;
    Array 1 be 10 , 5 , 6
    Array 2 be 12 , 6 , 8
    Array 3 be 15 , 4 , 9
    Array 4 be 8 , 3 , 6
    Array 5 be 10 , 8 , 4

    Now I want to compare Array 1 to all other except Array 1 , Array 2 to all other except Array 2 and so on till last array and
    want to consider as single array (if matches with other Array of L , B and H) and
    to create new array as RESULT.

    Thank You In Adv

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,636 Times in 2,586 Posts

    Default Re: Array elements comparison

    Are you going to write a java program to do this task?
    If so, do you have any specific questions or problems you want to ask about?

    Post your code with your questions.

Similar Threads

  1. java: adding array elements
    By dambundos in forum Collections and Generics
    Replies: 3
    Last Post: November 4th, 2011, 06:30 AM
  2. Comparing similar elements in an array
    By FJIW in forum Algorithms & Recursion
    Replies: 2
    Last Post: September 25th, 2011, 10:22 AM
  3. Comparing elements of an arrayList with an array?
    By DudeJericho in forum Collections and Generics
    Replies: 2
    Last Post: April 21st, 2011, 12:39 PM
  4. Need help with array comparison
    By raidcomputer in forum Collections and Generics
    Replies: 4
    Last Post: November 17th, 2009, 01:55 PM
  5. Array comparison
    By subhvi in forum Collections and Generics
    Replies: 5
    Last Post: September 3rd, 2009, 03:56 AM