Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: [quote=jwenting;287845]I repeat: You CAN'T use Strings. So you MUST use either Enums or integer literals.[/quote] Well, of course you can't use Strings directly, but with the use of default enum mappings you can get nearly exactly the same thing. Looking at this: [URL]http://www.xefer.com/2006/12/switchonstring[/URL] Enum.valueOf() is using a hash map to … |
The End.