JDK 1.7 新特性

Java SE 7 Features and Enhancements switch 支持 String 作参数 switch语句支持了对字符串String的断定,这对于开发来讲是很是便利的改进。html public class SwitchTest { public static void switchTest(String arg) { switch (arg) {
相关文章
相关标签/搜索