Correlation does not prove causality.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Correlation does not prove causality.
Correlation does not prove causality.
Originally posted by Roger F. Gay:
... But the value of "String" for example, is not equal to 1 or 2 or...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Correlation does not prove causality.
Originally posted by Roger F. Gay:
OK, wait a sec.
I'm not sure the declaration is right; but do you mean that I can do something like this (doing it right eventually), and STRING and INT can be used as case ids? ...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Originally posted by Roger F. Gay:
�'m not following you. Your example seems to return to the use of explicit use of integer values in the declaration of the enum  exactly what I was trying to avoid. See example in first post using static final ...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Correlation does not prove causality.
Originally posted by Remko Strating:
I don't know exactly what you're trying the solve but don't forget that different strings can have the same hashcode. So your solution can have some unexpected behavior...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Correlation does not prove causality.
Originally posted by Roger F. Gay:
I built a socket server that receives objects of various kinds. The first thing the handler does is check to see what type of object it is. The class name (could be String for example) goes into the switch...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.  Laurence J. Peter
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.  Laurence J. Peter
Correlation does not prove causality.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Correlation does not prove causality.
Correlation does not prove causality.
Originally posted by Roger F. Gay:
Thanks Andrew. That indeed solves my switchcase problem, with enums no less...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Correlation does not prove causality.
Correlation does not prove causality.
Correlation does not prove causality.
Seeing it work has a certain psychological effect  I get it. Thanks. I know something about Strategy now.
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.  Laurence J. Peter
It runs on an internal combustion engine. This ad does not:
Enterprisegrade Excel API for Java
https://products.aspose.com/cells/java
