2017年3月8日

摘要: 将博客搬至CSDN 阅读全文

posted @ 2017-03-08 13:14 DragonZhang 阅读(92) 评论(0) 推荐(0)

摘要: public static String md5(String src){ try { MessageDigest md= MessageDigest.getInstance("MD5"); byte[] output=md.digest(src.getBytes()); //return new 阅读全文

posted @ 2017-03-08 13:07 DragonZhang 阅读(1329) 评论(0) 推荐(0)


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