摘要: 编码习惯 我首先来说一下编码习惯,先不说其它的,单从代码行数来看的话,实现相同的逻辑,switch比if...else if占用的行数是要多一些的,请看下面的示例代码: switch版 public class Demo1 { public static void main(String[] arg 阅读全文
posted @ 2020-12-02 16:24 欧清辣哨 阅读(321) 评论(0) 推荐(0) 编辑