2017年1月16日

摘要: 关键字 switch 语句用于多条件判断,switch 语句的功能类似于 if-else 语句,两者的性能差不多。但是 switch 语句有性能提升空间。清单 16 所示代码演示了 Switch 与 if-else 之间的对比。 public class switchCompareIf { publ 阅读全文

posted @ 2017-01-16 20:51 DragonZhang 阅读(1898) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3