Hello,

I am quite lost at the moment.I am trying to implement a program that will check how many times an object from my array list will occur.

I am not quite sure how to do it. Let say I have my list [dogs, cat, rabbit, chicken]

how to check that dogs will occur exactly 3 times in my new list? when I pick three random items?

I don't want code but ideas how to do it.

That may depend on how the given language recognizes objects.
Some languages have a TypeOf() method that will let you inspect an objects type.
That can be used to count those of a particular type in array.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.