Secret Santa Draw Names this season without Paper!!!



                One of the more popular holiday games, Secret Santa (also known as Kris Kringle in some circles) is a fun and easy way for a group of friends, family members or co-workers to exchange gifts.

                The basic concept of the Secret Santa game is simple. All of the participants’ names are placed into a hat, box, etc. and mixed up. Each person then chooses one name from the box, but doesn't tell anyone which name was picked. He/she is now responsible for buying a gift for the person selected.


For more information how to play? Click me!! and  to play  online Click me!!

Today we will explore concepts of Collections in Java to create Virtual name drawing Program.


How to use this code to draw the names??! Well it is simple all you need to do is

  • take a Notepad/Notepad++, write down the names of the players.
  •  copy pass the code in two classes and run the program. 
  • compare the results with the names written in the notepad(by default Notepad++  has number displayed for each line which makes your job easy to compare results).


Share on Google Plus

About Sandeep Ram

    Blogger Comment
    Facebook Comment

1 comments:

  1. As reported by Stanford Medical, It is in fact the one and ONLY reason women in this country get to live 10 years more and weigh 19 KG lighter than we do.

    (Just so you know, it has NOTHING to do with genetics or some secret-exercise and really, EVERYTHING to do with "how" they eat.)

    BTW, I said "HOW", and not "what"...

    CLICK this link to uncover if this easy test can help you release your true weight loss possibility

    ReplyDelete