jdk1.7的新特性

jdk1.7的新特性:  1,switch中能夠使用字串  Java代碼 String s = "test"; switch (s) { case "test" : System.out.println("test"); case "test1" : System.out.println("test1"); break ;
相關文章
相關標籤/搜索