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 write a program in java to get the count of duplicate pair?(eg:-row 1 and 3 are duplicates)

  1. #1
    Junior Member
    Join Date
    Sep 2020
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to write a program in java to get the count of duplicate pair?(eg:-row 1 and 3 are duplicates)

    --------------------------------------------
    | Sno | Fruit 1 | Fruit 2 |
    -------------------------------------------
    | 1 | apple | orange |
    ------------------------------------------
    | 2 | grapes | pineapple |
    -------------------------------------------
    | 3 | apple | orange |
    -------------------------------------------
    | 4 | banana | pear |
    -------------------------------------------
    Last edited by Bluebell; September 8th, 2020 at 06:47 AM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: how to write a program in java to get the count of duplicate pair?(eg:-row 1 and 3 are duplicates)

    What have you tried?

    Be sure to wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. java program to count characters
    By asim001 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 2nd, 2019, 10:03 AM
  2. Replies: 3
    Last Post: December 1st, 2018, 03:39 PM
  3. Replies: 1
    Last Post: April 11th, 2018, 01:50 PM
  4. Java program to count External devices connected with the system. Eg. Pen drive
    By arindam.mukherjee007 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 29th, 2013, 08:34 AM
  5. Looking for duplicate birthdays program
    By Tronez in forum What's Wrong With My Code?
    Replies: 8
    Last Post: December 6th, 2011, 08:50 PM