News

In their 2009 JavaOne presentation Return of the Puzzlers: Schlock and Awe ( PDF ), Joshua Bloch and Neal Gafter presented seven more puzzlers and extracted lessons learned from each of these ...
You could avoid the “lack of type safety” and “not enough information” problems by using java.lang.String constants. For example, you might specify static final String DIR_NORTH = "NORTH";.