Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I actually tried it..it compiled fine.but my worry is what happens when a value is passed in that doesnt exist in the enum? Commented Aug 22, 2013 at 14:16
  • @sirbombay You can try that 2 :) Commented Aug 22, 2013 at 14:20
  • @sirbombay read my edited answer Commented Aug 22, 2013 at 14:25
  • it now makes sense...i guess i shd find that out myself too :) Commented Aug 22, 2013 at 14:30