Posts
 
Reputation
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
~2K People Reached
Favorite Forums
Favorite Tags
java x 1

1 Posted Topic

Member Avatar for niamul

[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 …

Member Avatar for jon.kiparsky
0
2K

The End.