Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How many times each unique String appears in the collection.

How many times each unique String appears in the collection.

Scheduled Pinned Locked Moved C#
tutorial
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dsrao
    wrote on last edited by
    #1

    Hi All, Here are the code... // List< String >category=new List < String >(); category.Add("House"); category.Add("Car"); category.Add("Dog"); category.Add("Car"); I want to show report like this... Name Count ===== ===== Car 2 Dog 1 House 1 Please let me know how to do the above output.

    Thanks & Regards Rao

    P OriginalGriffO 2 Replies Last reply
    0
    • D dsrao

      Hi All, Here are the code... // List< String >category=new List < String >(); category.Add("House"); category.Add("Car"); category.Add("Dog"); category.Add("Car"); I want to show report like this... Name Count ===== ===== Car 2 Dog 1 House 1 Please let me know how to do the above output.

      Thanks & Regards Rao

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      You deleted your earlier post[^] and reposted? :wtf: WE DON'T DO HOMEWORK HERE!

      1 Reply Last reply
      0
      • D dsrao

        Hi All, Here are the code... // List< String >category=new List < String >(); category.Add("House"); category.Add("Car"); category.Add("Dog"); category.Add("Car"); I want to show report like this... Name Count ===== ===== Car 2 Dog 1 House 1 Please let me know how to do the above output.

        Thanks & Regards Rao

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        I refer the honerable gentleman to my earlier answer to his question. I'll do your homework only if you pay me lots.[^]

        No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        L 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          I refer the honerable gentleman to my earlier answer to his question. I'll do your homework only if you pay me lots.[^]

          No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Sure, however you forgot to mention your price. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          OriginalGriffO 1 Reply Last reply
          0
          • L Luc Pattyn

            Sure, however you forgot to mention your price. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            I feel the word "lots" indicates he would be in the "I don't like the client and so he should be gouged" price band. :laugh:

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            L 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              I feel the word "lots" indicates he would be in the "I don't like the client and so he should be gouged" price band. :laugh:

              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              I meant your earlier request for credit card details, that one was very unspecific. "Lots" has become very precise around here, reminds me of "1, 2, many". :laugh:

              Luc Pattyn [Forum Guidelines] [My Articles]


              The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


              OriginalGriffO 1 Reply Last reply
              0
              • L Luc Pattyn

                I meant your earlier request for credit card details, that one was very unspecific. "Lots" has become very precise around here, reminds me of "1, 2, many". :laugh:

                Luc Pattyn [Forum Guidelines] [My Articles]


                The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #7

                Once I have his details, we can see how much he still owes me when I hit his credit limit... :laugh:

                No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups