in reply to How to group identical words?

Hint: look at hashes.

Also, this looks a lot like homework. If it is, you're going to get a lot more help if you state that it is and you show what code you tried and where you got stuck.

Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

I would love to change the world, but they won't give me the source code