2013年12月23日
摘要: 今天和大家分享下 在java7中可以使用String 作为switch 中的参数。原来在java7之前,switch只能去接收一个 byte、char、short、int 类型现在在java7中 switch 可以接收String类型啦。下面是代码: 1 package net.cc; 2 3 /** 4 * @author test 5 * @create 2013年12月23日 下午11:34:12 6 * @version 1.0 7 */ 8 public class Test1 { 9 10 public static void printDay(String da... 阅读全文
posted @ 2013-12-23 23:48 小沫9 阅读(539) 评论(0) 推荐(0) 编辑