switch on String
Before JDK 7, only integral types can be used as selector for switch-case statement. In JDK 7, you can use a String object as the selector. For example,
http://www3.ntu.edu.sg/home/ehchua/programming/java/JDK7_NewFeatures.html
http://www.eweek.com/c/a/Application-Development/Oracle-and-Java-7-The-Top-10-Developer-Features-626145/
Sunday, December 4, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment