Enums are lists of constants. When you need a predefined list of values which do represent some kind of numeric or textual data, you should use an enum.
You could enter number or string to get the specific value
For the past 10 years, I've been playing with codes using PHP, Java, Rails. I do this for a living and love new things to learn and the challenges that comes with it.
Besides programming I love spending time with friends and family and can often be found together catching the latest movie or planning a trip to someplace I've never been before.
0 comments:
Post a Comment