2007-07-13

JSE links

Tutorials: http://javaboutique.internet.com/tutorials/ memory leak: http://weblogs.java.net/blog/timboudreau/archive/2005/04/writing_memory.html http://www.technocage.com/~ray/talks/swing.html Misc: http://www.java2s.com/Code/Java/Language-Basics/ObjectInspector.htm http://www.java2s.com/ ...
2007-03-04

Java enums in JDK 1.4

关键字: enum, object type
Constantly, we need to define enums. In Java 1.5, there is also a keyword. However, in JDK 1.4, we are out of the luck and have to come up something to simulate enums. The motivation for enums is to avoid hardcoding same constants everywhere because it makes maintanence a nightmare, hard to track ...