Oh good god, everyone here is saying SO is mean to inexperienced people. We're not, we just can't stand BAD questions:
- No research effort
- Not telling us what you have now and what that should be
- No code to test with (we're not going to write a whole test for you)
- I can find the answer with 1 google search and its on SO... so its a dupe
Please just google and try something before you ask and tell us what you tried so we don't have to.