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) {
相關文章
相關標籤/搜索